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