feaedd57 |
1 | puts "==============================================================" |
2 | puts "OCC27230: Boolean operations fails on attached shapes" |
3 | puts "==============================================================" |
4 | puts "" |
5 | |
6 | brestore [locate_data_file bug27230_s1.brep] s1 |
7 | brestore [locate_data_file bug27230_s2.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 10 -face 8 -shell 1 -solid 1 |
29 | checkprops r0 -s 8224.83 -v 17106.7 |
30 | |
31 | checknbshapes r1 -wire 22 -face 18 -shell 1 -solid 1 |
32 | checkprops r1 -s 75638.3 -v 661141 |
33 | |
34 | checknbshapes r2 -wire 16 -face 14 -shell 2 -solid 2 |
35 | checkprops r2 -s 40609.3 -v 322017 |
36 | |
37 | checknbshapes r3 -wire 16 -face 12 -shell 1 -solid 1 |
38 | checkprops r3 -s 43253.8 -v 322017 |
39 | |
40 | checkprops r4 -l 345.256 |
41 | |
42 | if {![regexp "nb alone Vertices : 0" [checksection r4]]} { |
43 | puts "Error: Section is not closed" |
44 | } |
45 | |
46 | checkview -display r1 -2d -path ${imagedir}/${test_image}.png |