0025813: regression in Hidden Line Removal
[occt.git] / tests / bugs / modalg_6 / bug25937_2
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
19 checkprops result -l 60. -s 200.
20 checksection result
21 checkshape result
22
23 set nbshapes_expected "
24 Number of shapes in shape
25  VERTEX    : 4
26  EDGE      : 4
27  WIRE      : 1
28  FACE      : 1
29  SHELL     : 0
30  SOLID     : 0
31  COMPSOLID : 0
32  COMPOUND  : 1
33  SHAPE     : 11
34 "
35 checknbshapes result -ref ${nbshapes_expected} -t -m "Result obtained by Cut a wire by halfspace"
36 checkview -display result -3d -path ${imagedir}/${test_image}.png