0029351: Boolean Operations create invalid pcurves
[occt.git] / tests / bugs / moddata_2 / bug6278
CommitLineData
61c421bf 1puts "============"
2puts "OCC6278"
3puts "============"
4puts ""
5######################################################
6# Fuse operation produces incorrect result
7######################################################
8
9set BugNumber OCC6278
10
11restore [locate_data_file OCC6278-A.brep] a
12restore [locate_data_file OCC6278-B.brep] b
13
14bfuse result a b
15explode result v
16
a4eba920 17checknbshapes result -vertex 4
61c421bf 18
19set DumpList [dump result_2]
20if {[llength ${DumpList}] < 40} {
21 puts "Faulty ${BugNumber}: bad format of dump"
22} else {
23 regexp { *- *Point *3D *: *([-0-9.+eE]+), +([-0-9.+eE]+), +([-0-9.+eE]+)} ${DumpList} full x y z
24 puts $x
25 puts $y
26 puts $z
61c421bf 27
28 set good_x -32.3042674857046
29 set good_y 20.0000000000001
30 set good_z 0.
31
1ef277c3 32 checkreal "x" ${x} ${good_x} 0 0.001
33 checkreal "y" ${y} ${good_y} 0 0.001
34 if { ${z} != 0. } {
35 checkreal "z" ${z} ${good_z} 0 0.001
61c421bf 36 }
37}
38
58cf74e0 39checkprops result -l 278.725
40checksection result
5747059b 41checkview -display result -3d -path ${imagedir}/${test_image}.png