1 puts "================"
4 puts "================"
6 #################################################################
7 ## SAM1178(#1871): Bad escaped result after a cut operation on the shape.
8 #################################################################
10 restore [locate_data_file OCC152.brep] sh
13 # the shape sh_1 is self-interfered
15 eval mkvolume a [explode sh_1 f]
18 if {![regexp "OK" [bopcheck a]]} {
19 puts "Error: first argument is still self-interfered"
22 # Note, that one of the edges of the shape sh_2 contains invalid PCurve
23 # on one of the faces of the shape sh_1. Try:
27 # pcurve sh_1_3; 2dfit
28 # pcurve c2d sh_2_1 sh_1_3
29 # c2d is not adjusted.
31 # Boolean Operations algorithm will adjust it itself.
36 # perform intersection
43 # perform all kinds of Boolean operations
48 checkprops rcom -s 57108.7 -v 436179
49 checknbshapes rcom -wire 3 -face 3 -shell 2 -solid 2 -m "Common"
55 checkprops rfuse -s 211120 -v 7.18494e+006
56 checknbshapes rfuse -wire 4 -face 4 -shell 1 -solid 1 -m "Fuse"
62 checkprops rcut -s 376623 -v 6.74877e+006
63 checknbshapes rcut -wire 9 -face 9 -shell 3 -solid 3 -m "Cut"
69 checkprops rtuc -s empty -v empty
70 checknbshapes rtuc -wire 0 -face 0 -shell 0 -solid 0 -m "Cut21"
75 checkprops result -s 490840 -v 7.62112e+006
76 checknbshapes result -wire 10 -face 10 -shell 5 -solid 5 -m "GF"
78 checkview -display result -2d -path ${imagedir}/${test_image}.png