f47b8d2b |
1 | puts "============" |
2 | puts "OCC25937" |
3 | puts "============" |
4 | puts "" |
5 | ############################### |
6 | ## Failed Cut Edge or Face by HalfSpace. |
7 | ############################### |
8 | |
9 | # Cut a wire by halfspace |
10 | plane h 0 0 0 1 0 0 |
11 | mkface h h |
12 | halfspace h h 10 0 0 |
13 | polyline a -10 -10 0 10 -10 0 10 10 0 -10 10 0 -10 -10 0 |
14 | |
15 | bop a h |
16 | bopcut result |
17 | |
18 | set length 40. |
19 | |
20 | set nbshapes_expected " |
21 | Number of shapes in shape |
22 | VERTEX : 4 |
23 | EDGE : 3 |
24 | WIRE : 1 |
25 | FACE : 0 |
26 | SHELL : 0 |
27 | SOLID : 0 |
28 | COMPSOLID : 0 |
29 | COMPOUND : 1 |
30 | SHAPE : 9 |
31 | " |
32 | checknbshapes result -ref ${nbshapes_expected} -t -m "Result obtained by Cut a wire by halfspace" |
33 | |
34 | set 3dviewer 1 |