0026833: Create command checkview containing all viewer types
[occt.git] / tests / 3rdparty / text3d / A1
... / ...
CommitLineData
1puts "==========="
2puts "0026343: Visualization - Zoom persistent text with 3D orientation"
3puts ""
4puts "==========="
5
6vfont add [locate_data_file DejaVuSans.ttf] SansFont
7
8pload ALL
9vinit View1
10vclear
11vaxo
12
13set x 10
14set y 50
15set z 30
16
17box b $x $y $z
18vdisplay b
19vtrihedron tri0
20
21vdrawtext t0 "Top text on plane yOz" -pos $x 0 $z -color green -height 20 -plane 1 0 0 0 1 0 -valign top -font SansFont
22vdrawtext t1 "Bottom text on plane yOz" -pos 0 $y 0 -color green -height 20 -plane -1 0 0 0 -1 0 -valign bottom -font SansFont
23
24vdrawtext t2 "Some text on the top face" -pos $x/2 $y/2 $z -color red -height 20 -plane 0 0 1 0 1 0 -valign center -halign center -font SansFont
25
26vdrawtext t3 "First line\nSecond line" -pos $x/2 0 $z/2 -color 0.0 0.0 1.0 -height 20 -plane 0 -1 0 0 0 1 -valign center -halign center -font SansFont
27
28vfit
29vglinfo
30checkview -screenshot -3d -path ${imagedir}/${test_image}.png