b357dcc2 |
1 | puts "============" |
2 | puts "OCC14531" |
3 | puts "============" |
4 | puts "" |
5 | ###################################################### |
6 | # Boolean Operation Algorithm fails |
7 | ###################################################### |
8 | |
9 | pcylinder c 10 20 |
10 | pcone x 20 0 20 |
11 | trotate x 0 0 20 0 1 0 45 |
12 | ttranslate x 5 0 0 |
13 | ttranslate x 0 0 1 |
14 | ttranslate c -5 0 0 |
15 | explode c f |
16 | explode x f |
17 | copy c_1 a1 |
18 | copy x_1 a2 |
19 | fit |
20 | bop a1 a2 |
21 | bopfuse result |
22 | |
23 | checkshape result |
24 | |
25 | checkprops result -s 3033.79 |
26 | |
27 | set nbshapes_expected " |
28 | Number of shapes in result |
29 | VERTEX : 7 |
30 | EDGE : 12 |
31 | WIRE : 5 |
32 | FACE : 4 |
33 | SHELL : 0 |
34 | SOLID : 0 |
35 | COMPSOLID : 0 |
36 | COMPOUND : 1 |
37 | SHAPE : 29 |
38 | " |
39 | checknbshapes result -ref ${nbshapes_expected} -t -m "Result obtained by Boolean cut operation" |
40 | |
41 | checkview -display result -2d -path ${imagedir}/${test_image}.png |