0029807: [Regression to 7.0.0] Impossible to cut cone from prism
[occt.git] / tests / bugs / modalg_7 / bug29311_4
CommitLineData
1a0339b4 1puts "========"
2puts "OCC29311"
3puts "========"
4puts ""
5#################################################
6# Implementation of the Oriented Bounding Boxes (OBB) functionality
7#################################################
8
9ptorus result 20 5
10trotate result 5 10 15 1 1 1 28
11
12puts "AABB"
13bounding -s result -shape ra -dump -save x1 y1 z1 x2 y2 z2
14
15dump x1 y1 z1 x2 y2 z2
16
17set VaExp [ dval (x2-x1)*(y2-y1)*(z2-z1) ]
18
19checkprops ra -v $VaExp
20
21puts "OBB"
22bounding -s result -shape ro -dump -obb
23
24checkprops ro -v 28694.7
25
26smallview
27fit
28checkview -screenshot -2d -path ${imagedir}/${test_image}.png