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/bug21091_5
apn c1e0171c58 Modified TODOs in test cases bugs modalg_2 bug5805_* with number of issue #25925.
bugs/modalg_4/bug8842_7 - test stable OK (removed TODOs).
bugs/modalg_2/bug453_2 - added ?TODO according to unstable behavior (#25918)
bugs/moddata_1/bug22759 - updated reference data
bugs/vis/bug21091_4 bug21091_5 bug21091_6 bug21091_9 - updated reference data
sewing/tol_100/K1 - added ?TODO according to unstable behavior (test will be removed in #25471)
2015-03-27 16:26:17 +03:00

60 lines
1.8 KiB
Plaintext
Executable File

puts "============"
puts "OCC21091"
puts "OCC21450"
puts "============"
puts ""
#vexport
#vexport full_file_path {PS | EPS | TEX | PDF | SVG | PGF } : exports the view to a vector file of a given format
#Testing export to PS format
vinit
vtrihedron trihedron
vpoint p1 -300 -300 -300
vdrawtext OpenCascade -300 -300 -300 000 255 000 0 0 000 0 15 1 Courier
vpoint p2 -300 -300 -100
vdrawtext OpenCascade -300 -300 -100 000 255 000 0 0 000 0 15 1 Courier
vpoint p3 -100 -100 -300
vdrawtext OpenCascade -100 -100 -300 000 255 000 0 0 000 0 15 1 Courier
vpoint p4 -100 -100 -100
vdrawtext OpenCascade -100 -100 -100 000 255 000 0 0 000 0 15 1 Courier
vpoint p5 -300 -100 -300
vdrawtext OpenCascade -300 -100 -300 000 255 000 0 0 000 0 15 1 Courier
vpoint p6 -100 -300 -300
vdrawtext OpenCascade -100 -300 -300 000 255 000 0 0 000 0 15 1 Courier
vpoint p7 -300 -100 -100
vdrawtext OpenCascade -300 -100 -100 000 255 000 0 0 000 0 15 1 Courier
vpoint p8 -100 -300 -100
vdrawtext OpenCascade -100 -300 -100 000 255 000 0 0 000 0 15 1 Courier
vaxis ax1 100 100 100 100 100 0
box a 110 110 110 200 200 200
vdisplay a
file delete -force ${imagedir}/${test_image}.ps
set aFile ${imagedir}/${test_image}.ps
vexport ${aFile} PS
if { [string compare $tcl_platform(platform) "windows"] != 0 } {
set refsize 10370
} else {
set refsize 10394
}
if { [file exists ${aFile}] } {
puts "Export to PS format was done"
set filesize [file size ${aFile}]
if { $filesize != $refsize } {
puts "Error: Export to PS file was done but size of file is incorrect (refsize = $refsize, current = $filesize)."
puts "Error: Compare content of resulting PS file with reference."
puts "Error: Update refsize if it's necessary."
}
} else {
puts "Faulty : Export to PS format was not done"
}
set only_screen 1