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

24 lines
814 B
Plaintext

puts "========"
puts "OCC25369"
puts "========"
puts ""
###################################################################################################
# Visualization, Image_AlienPixMap - handle UTF-8 names in image read/save operations on Windows
###################################################################################################
vfont add [locate_data_file DejaVuSans.ttf] SansFont
box b 1 2 3
vinit View1
vclear
vsetdispmode 0
vdisplay b
vfit
set s [encoding convertfrom unicode "\x3A\x04\x30\x04\x40\x04\x2E\x00\x70\x00\x6E\x00\x67\x00"]
vdrawtext text0 $s -pos 0 0 0 -color 1.0 1.0 1.0 -halign left -valign bottom -angle 0 -zoom 0 -height 50 -aspect regular -font SansFont
vdump $::imagedir/$s
vtexture b $::imagedir/$s
checkview -screenshot -3d -path ${imagedir}/${test_image}.png