2 puts "OCC28113: BOPAlgo_Builder produces invalid shape"
7 restore [locate_data_file bug28113_shapes.brep] s
10 # fix the first shape in compound
11 # 1. exclude s_1_3 from compsolid
12 eval compound [lrange [explode s_1 so] 0 1] [lrange [explode s_1 so] 3 end] comp
14 eval mkvolume v [explode comp f]
16 checknbshapes v -solid 18 -shell 18
17 if {![regexp "OK" [bopcheck v]]} {
18 puts "Error: unable to rebuild the shape"
23 foreach s [explode v so] { add $s s1}
25 # perform the operation
29 baddtools s_2 s_3 s_4 s_5
34 foreach r {gf result} {
36 if {![regexp "OK" [bopcheck $r]]} {
37 puts "Error: result is a self-interfering shape"
41 checknbshapes gf -wire 417 -face 417 -shell 91 -solid 90
42 checkprops gf -s 259559 -v 690192
44 checknbshapes result -wire 417 -face 417 -shell 90 -solid 90
45 checkprops result -s 226564 -v 669028
47 checkview -display result -2d -path ${imagedir}/${test_image}.png