puts "========"
puts "OCC27359: Visualization - add support of flipping for textured text"
puts "========"
puts ""

set m_pi 3,14
set m_pi2 1,57

pload MODELING VISUALIZATION
vfont add [locate_data_file DejaVuSans.ttf] SansFont

vinit View1
vclear
vright

set x 10
set y 50
set z 30

box b $x $y $z
vdisplay b
vtrihedron t

vdrawtext t0 "top left text\n on yoz" -pos $x 0 0 -color green -height 30 -plane 1 0 0 0 1 0 -flipping -valign top -halign left -font SansFont
vdrawtext t2 "center text" -pos 0 $y/2 $z/2 -color red -height 30 -plane 1 0 0 0 1 0 -flipping -valign center -halign center -font SansFont

vfit
vright
vdump $imagedir/${casename}_1.png

vrotate $m_pi 0 0
vfit
vdump $imagedir/${casename}_2.png

vright
vrotate 0 $m_pi 0
vfit
vdump $imagedir/${casename}_3.png
