1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-04 18:06:22 +03:00
occt/tests/bugs/vis/bug23652
ski 5747059b21 0026833: Create command checkview containing all viewer types
Created command checkview for displaying shapes.
2016-02-05 11:14:37 +03:00

35 lines
1.2 KiB
Plaintext
Executable File

puts "========"
puts "OCC23652"
puts "========"
###############################################################################
# Non zoomable text with alignment slides away when zooming view
###############################################################################
vfont add [locate_data_file DejaVuSans.ttf] SansFont
vinit
vtrihedron tri
vdrawtext text0 Default -pos 0.0 0.0 0.0 -color 1.0 1.0 1.0 -halign left -valign bottom -angle 0 -zoom 1 -height 20 -aspect regular -font SansFont
vdrawtext text1 Right_Align -pos 0.0 0.0 0.0 -color 1.0 1.0 1.0 -halign right -valign bottom -angle 0 -zoom 1 -height 20 -aspect regular -font SansFont
set scale 3.1783114563761763
set proj_X 0.57735025882720947
set proj_Y -0.57735025882720947
set proj_Z 0.57735025882720947
set up_X -0.40824827551841736
set up_Y 0.40824827551841736
set up_Z 0.81649655103683472
set at_X 0
set at_Y 0
set at_Z 0
vviewparams -scale ${scale} -proj ${proj_X} ${proj_Y} ${proj_Z} -up ${up_X} ${up_Y} ${up_Z} -at ${at_X} ${at_Y} ${at_Z}
set x_coord 210
set y_coord 204
checkcolor $x_coord $y_coord 0.6 0.6 0.6
checkview -screenshot -3d -path ${imagedir}/${test_image}.png