0014531: Boolean Operation Algorithm fails
[occt.git] / tests / bugs / demo / bug24873_2
CommitLineData
c2a388f8 1puts "============"
2puts "CR24873"
3puts "============"
4puts ""
5##########################################################################################################
6# Draw Harness, ViewerTest - add command vbounding to show presentation bounding box
7##########################################################################################################
8
9vinit View1
10vclear
11vaxo
12vsetdispmode 1
13
14psphere s 2
15vdisplay s
16vfit
17
18set info [vbounding -print s]
19
20regexp {s+\n([-0-9.+eE]+) +([-0-9.+eE]+) +([-0-9.+eE]+) +([-0-9.+eE]+) +([-0-9.+eE]+) +([-0-9.+eE]+)} ${info} full x1 y1 z1 x2 y2 z2
21
22set tol_abs 0.1
23set tol_rel 0.1
24
25set expected_x1 -2
26set expected_y1 -2
27set expected_z1 -2
28
29set expected_x2 2
30set expected_y2 2
31set expected_z2 2
32
33checkreal "x1" ${x1} ${expected_x1} ${tol_abs} ${tol_rel}
34checkreal "y1" ${y1} ${expected_y1} ${tol_abs} ${tol_rel}
35checkreal "z1" ${z1} ${expected_z1} ${tol_abs} ${tol_rel}
36checkreal "x2" ${x2} ${expected_x2} ${tol_abs} ${tol_rel}
37checkreal "y2" ${y2} ${expected_y2} ${tol_abs} ${tol_rel}
38checkreal "z2" ${z2} ${expected_z2} ${tol_abs} ${tol_rel}
39
40vdump ${imagedir}/${test_image}.png