7365fad6 |
1 | puts "========" |
2 | puts "OCC26310" |
3 | puts "========" |
4 | puts "" |
5 | ################################################# |
6 | # Very slow boolean cut operations on cylinders |
7 | ################################################# |
8 | |
9 | restore [locate_data_file OCC26310-b1.brep] b1 |
10 | restore [locate_data_file OCC26310-b2.brep] b2 |
11 | |
12 | bop b2 b1 |
13 | |
14 | bopcut res1 |
15 | boptuc res2 |
16 | |
17 | checkshape res1 |
18 | checkshape res2 |
19 | |
20 | set log1 [bopargcheck res1 #F] |
21 | set log2 [bopargcheck res2 #F] |
22 | |
23 | if { [string first "Faulties for FIRST shape found : 2" $log1] >= 0 } { |
24 | puts "ERROR in bopargcheck res1" |
25 | } |
26 | |
27 | if { [string first "Shapes with Continuity C0 : YES Cases(2) Total shapes(2)" $log1] >= 0 } { |
28 | puts "ERROR. res1 with continuity C0." |
29 | } |
30 | |
31 | if { [string first "Faulties for FIRST shape found : 2" $log2] >= 0 } { |
32 | puts "ERROR in bopargcheck res2" |
33 | } |
34 | |
35 | if { [string first "Shapes with Continuity C0 : YES Cases(2) Total shapes(2)" $log2] >= 0 } { |
36 | puts "ERROR. res2 with continuity C0." |
37 | } |
38 | |
39 | smallview |
40 | donly res1 |
41 | fit |
42 | xwd ${imagedir}/${casename}_1.png |
43 | donly res2 |
44 | fit |
45 | xwd ${imagedir}/${casename}_2.png |