1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
|
puts "============"
puts "OCC21091"
puts "OCC21450"
puts "============"
puts ""
#vinit
#vexport
#vexport full_file_path {PS | EPS | TEX | PDF | SVG | PGF } : exports the view to a vector file of a given format
#
pload XSDRAW
vinit
meshfromstl m [locate_data_file shape.stl]
meshtext m
vsetdispmode m 34
file delete -force ${imagedir}/${test_image}.pdf
set aFile ${imagedir}/${test_image}.pdf
vexport ${aFile} PDF
if { [string compare $tcl_platform(platform) "windows"] != 0 } {
set refsize 144401
} else {
set refsize 153993
}
if { [file exists ${aFile}] } {
puts "Export to PDF file was done"
set filesize [file size ${aFile}]
if { $filesize != $refsize } {
puts "Error: Export to PDF file was done but size of file is incorrect (refsize = $refsize, current = $filesize)."
puts "Error: Compare content of resulting PDF file with reference."
puts "Error: Update refsize if it's necessary."
}
} else {
puts "Faulty : Export to PDF file was not done"
}
set only_screen 1
|