80da8585 |
1 | puts "========" |
2 | puts "0030281: Regression to 7.2.0: Modeling Algorithms - Wrong result of CUT operation" |
3 | puts "========" |
4 | puts "" |
5 | |
6 | restore [locate_data_file bug30281_shape.brep] s1 |
7 | restore [locate_data_file bug30281_tool.brep] s2 |
8 | |
9 | bclearobjects |
10 | bcleartools |
11 | baddobjects s1 |
12 | baddtools s2 |
13 | bfillds |
14 | |
15 | bbop r0 0 |
16 | bbop r1 1 |
17 | bbop r2 2 |
18 | bbop r3 3 |
19 | bbop r4 4 |
20 | |
21 | foreach r {r0 r1 r2 r3 r4} { |
22 | checkshape $r |
23 | if {![regexp "OK" [bopcheck $r]]} { |
24 | puts "Error: the result of BOP is self-interfering shape" |
25 | } |
26 | } |
27 | |
28 | checknbshapes r0 -wire 112 -face 88 -shell 4 -solid 4 |
29 | checkprops r0 -s 590506 -v 7.584e+006 |
30 | |
31 | checknbshapes r1 -wire 58 -face 46 -shell 1 -solid 1 |
32 | checkprops r1 -s 976583 -v 2.24e+007 |
33 | |
34 | checknbshapes r2 -wire 94 -face 82 -shell 1 -solid 1 |
35 | checkprops r2 -s 1.00882e+006 -v 1.4816e+007 |
36 | |
37 | checknbshapes r3 -shell 0 -solid 0 |
38 | checkprops r3 -s empty -v empty |
39 | |
40 | checkprops r4 -l 9614.01 |
41 | |
42 | checkview -display r2 -2d -path ${imagedir}/${test_image}.png |