0014531: Boolean Operation Algorithm fails
[occt.git] / tests / bugs / modalg_6 / bug14531
CommitLineData
b357dcc2 1puts "============"
2puts "OCC14531"
3puts "============"
4puts ""
5######################################################
6# Boolean Operation Algorithm fails
7######################################################
8
9pcylinder c 10 20
10pcone x 20 0 20
11trotate x 0 0 20 0 1 0 45
12ttranslate x 5 0 0
13ttranslate x 0 0 1
14ttranslate c -5 0 0
15explode c f
16explode x f
17copy c_1 a1
18copy x_1 a2
19fit
20bop a1 a2
21bopfuse result
22
23checkshape result
24
25checkprops result -s 3033.79
26
27set nbshapes_expected "
28Number 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"
39checknbshapes result -ref ${nbshapes_expected} -t -m "Result obtained by Boolean cut operation"
40
41checkview -display result -2d -path ${imagedir}/${test_image}.png