6f1ea0f4 |
1 | puts "========" |
2 | puts "OCC29179" |
3 | puts "========" |
4 | puts "" |
5 | ################################################# |
6 | # Result of Boolean common depends on an order of arguments |
7 | ################################################# |
8 | |
9 | restore [locate_data_file bug26938.brep] a |
10 | explode a |
11 | |
12 | bcommon res1 a_1 a_2 |
13 | |
14 | restore [locate_data_file bug26938.brep] a |
15 | explode a |
16 | |
17 | bcommon res2 a_2 a_1 |
18 | |
19 | checkview -display res1 -2d -path ${imagedir}/${test_image}_1.png |
20 | checkview -display res2 -2d -path ${imagedir}/${test_image}_2.png |
21 | |
22 | checkshape res1 |
23 | checkshape res2 |
24 | |
25 | if {[regexp "Faulties" [bopargcheck res1]]} { |
26 | puts "Error: bopargcheck has found some faulties in res1" |
27 | } |
28 | |
29 | if {[regexp "Faulties" [bopargcheck res2]]} { |
30 | puts "Error: bopargcheck has found some faulties in res2" |
31 | } |
32 | |
33 | checkprops res1 -v 4.93528e+008 |
34 | checkprops res2 -v 4.93528e+008 |
35 | |
36 | set nbshapes_expected " |
37 | Number of shapes in .* |
38 | VERTEX : 5 |
39 | EDGE : 7 |
40 | WIRE : 4 |
41 | FACE : 4 |
42 | SHELL : 1 |
43 | SOLID : 1 |
44 | COMPSOLID : 0 |
45 | COMPOUND : 1 |
46 | SHAPE : 23 |
47 | " |
48 | |
49 | checknbshapes res1 -ref ${nbshapes_expected} -t -m "1st COMMON" |
50 | checknbshapes res2 -ref ${nbshapes_expected} -t -m "2nd COMMON" |