f47b8d2b |
1 | puts "============" |
2 | puts "OCC25937" |
3 | puts "============" |
4 | puts "" |
5 | ############################### |
6 | ## Failed Cut Edge or Face by HalfSpace. |
7 | ############################### |
8 | |
9 | # Cut a solid by halfspace |
10 | plane h 0 0 0 1 0 0 |
11 | mkface h h |
12 | halfspace h h 10 0 0 |
13 | box a -10 -10 0 20 20 10 |
14 | |
15 | bop a h |
16 | bopcut result |
17 | |
58cf74e0 |
18 | checkprops result -s 1000. |
19 | checkshape result |
f47b8d2b |
20 | |
21 | set nbshapes_expected " |
22 | Number of shapes in shape |
23 | VERTEX : 8 |
24 | EDGE : 12 |
25 | WIRE : 6 |
26 | FACE : 6 |
27 | SHELL : 1 |
28 | SOLID : 1 |
29 | COMPSOLID : 0 |
30 | COMPOUND : 1 |
31 | SHAPE : 35 |
32 | " |
33 | checknbshapes result -ref ${nbshapes_expected} -t -m "Result obtained by Cut a wire by halfspace" |
5747059b |
34 | checkview -display result -3d -path ${imagedir}/${test_image}.png |