cba287d6 |
1 | puts "========" |
2 | puts "OCC26883" |
3 | puts "========" |
4 | puts "" |
5 | ####################################################################### |
6 | # Wrong result of Boolean Operation |
7 | ####################################################################### |
8 | |
9 | restore [locate_data_file bug26883_object.brep] b1 |
10 | restore [locate_data_file bug26883_fuse_tool2.brep] b2 |
11 | |
12 | bclearobjects |
13 | bcleartools |
14 | baddobjects b1 |
15 | baddtools b2 |
16 | bfillds |
17 | |
c08fd127 |
18 | bbop r_0 0 |
19 | bbop r_1 1 |
20 | bbop r_2 2 |
21 | bbop r_3 3 |
22 | bbop r_4 4 |
23 | bbuild r_5 |
cba287d6 |
24 | |
c08fd127 |
25 | foreach i { 0 1 2 3 4 5} { |
26 | checkshape r_$i |
27 | if {![regexp "OK" [bopcheck r_$i]]} { |
28 | puts "Error: r_$i is self-intersecting shape" |
29 | } |
30 | } |
cba287d6 |
31 | |
c08fd127 |
32 | checkprops r_0 -s 9.84822 -v 0.639566 |
33 | checknbshapes r_0 -wire 7 -face 5 -shell 1 -solid 1 -t |
34 | |
35 | checkprops r_1 -s 2116.61 -v 607.386 |
36 | checknbshapes r_1 -wire 40 -face 34 -shell 3 -solid 1 -t |
37 | |
38 | checkprops r_2 -s 2110.46 -v 606.532 |
39 | checknbshapes r_2 -wire 36 -face 30 -shell 3 -solid 2 -t |
40 | |
41 | checkprops r_3 -s 15.9958 -v 0.215358 |
42 | checknbshapes r_3 -wire 11 -face 9 -shell 2 -solid 2 -t |
43 | |
44 | checkprops r_4 -l 24.818 |
45 | checksection r_4 -r 0 |
46 | |
47 | checkprops r_5 -s 2146.15 -v 608.026 |
48 | checknbshapes r_5 -wire 47 -face 39 -shell 6 -solid 5 -t |
49 | |
50 | |
51 | checkview -display r_1 -2d -path ${imagedir}/${test_image}.png |