1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-06-30 12:14:08 +03:00
occt/tests/bugs/vis/bug24001
kgv 6b62b2da81 0025291: Draw Harness, ViewerTest - replace command vchangecamera to vcamera and improve syntax
Make vcamera command syntax more clear.
Restore command vraytrace as alias to vrenderparams.
Replace occurencies of atof() by Draw::Atof() in ViewerTest_ViewerCommands.cxx.
2014-10-02 14:25:55 +04:00

39 lines
877 B
Plaintext

puts "========"
puts "OCC24001"
puts "Camera dump test"
puts "========"
box b 1 2 3
vinit
vdisplay b
# initialize camera parameters
vcamera -fov 45 -iodType relative -iod 0.05 -zfocustype relative -zfocus 1.0
# test vdump work
# make sure that neither of 4 produced images match each other
vcamera -ortho
vfit
set aTitle "ortho"
vdump $imagedir/${casename}_${aTitle}.png rgb 512 512
vcamera -persp
vfit
set aTitle "persp"
vdump $imagedir/${casename}_${aTitle}.png rgb 512 512
vcamera -stereo
set aTitle "stereoR"
vdump $imagedir/${casename}_${aTitle}.png rgb 512 512 R
set aTitle "stereoL"
vdump $imagedir/${casename}_${aTitle}.png rgb 512 512 L
# test context stereo mode swicthing
# if not supported by hardware it must not crash
vstereo 1
vclose all
vinit
vdisplay b
vcamera -stereo
vfit
set aTitle "afterSwitch"
vdump $imagedir/${casename}_${aTitle}.png rgb 512 512 R