0025507: Visualization - the method V3d_View::Place() is incorrect
[occt.git] / tests / bugs / vis / bug24001
CommitLineData
b5ac8292 1puts "========"
2puts "OCC24001"
3puts "Camera dump test"
4puts "========"
5
6box b 1 2 3
7vinit
8vdisplay b
9
10# initialize camera parameters
6b62b2da 11vcamera -fov 45 -iodType relative -iod 0.05 -zfocustype relative -zfocus 1.0
b5ac8292 12
13# test vdump work
14# make sure that neither of 4 produced images match each other
6b62b2da 15vcamera -ortho
b5ac8292 16vfit
17set aTitle "ortho"
18vdump $imagedir/${casename}_${aTitle}.png rgb 512 512
6b62b2da 19vcamera -persp
b5ac8292 20vfit
21set aTitle "persp"
22vdump $imagedir/${casename}_${aTitle}.png rgb 512 512
6b62b2da 23vcamera -stereo
b5ac8292 24set aTitle "stereoR"
25vdump $imagedir/${casename}_${aTitle}.png rgb 512 512 R
26set aTitle "stereoL"
27vdump $imagedir/${casename}_${aTitle}.png rgb 512 512 L
28
29# test context stereo mode swicthing
30# if not supported by hardware it must not crash
31vstereo 1
32vclose all
33vinit
34vdisplay b
6b62b2da 35vcamera -stereo
b5ac8292 36vfit
37set aTitle "afterSwitch"
38vdump $imagedir/${casename}_${aTitle}.png rgb 512 512 R