Modified TODOs in test cases bugs modalg_2 bug5805_* with number of issue #25925.
[occt.git] / tests / bugs / vis / bug21091_5
CommitLineData
a8676008 1puts "============"
2puts "OCC21091"
3puts "OCC21450"
4puts "============"
5puts ""
6#vexport
7#vexport full_file_path {PS | EPS | TEX | PDF | SVG | PGF } : exports the view to a vector file of a given format
8#Testing export to PS format
9
10vinit
a8676008 11vtrihedron trihedron
12
13vpoint p1 -300 -300 -300
14vdrawtext OpenCascade -300 -300 -300 000 255 000 0 0 000 0 15 1 Courier
15vpoint p2 -300 -300 -100
16vdrawtext OpenCascade -300 -300 -100 000 255 000 0 0 000 0 15 1 Courier
17vpoint p3 -100 -100 -300
18vdrawtext OpenCascade -100 -100 -300 000 255 000 0 0 000 0 15 1 Courier
19vpoint p4 -100 -100 -100
20vdrawtext OpenCascade -100 -100 -100 000 255 000 0 0 000 0 15 1 Courier
21
22
23vpoint p5 -300 -100 -300
24vdrawtext OpenCascade -300 -100 -300 000 255 000 0 0 000 0 15 1 Courier
25vpoint p6 -100 -300 -300
26vdrawtext OpenCascade -100 -300 -300 000 255 000 0 0 000 0 15 1 Courier
27vpoint p7 -300 -100 -100
28vdrawtext OpenCascade -300 -100 -100 000 255 000 0 0 000 0 15 1 Courier
29vpoint p8 -100 -300 -100
30vdrawtext OpenCascade -100 -300 -100 000 255 000 0 0 000 0 15 1 Courier
31
32vaxis ax1 100 100 100 100 100 0
33
34box a 110 110 110 200 200 200
35vdisplay a
36
9aa684ed 37file delete -force ${imagedir}/${test_image}.ps
38set aFile ${imagedir}/${test_image}.ps
a8676008 39
40vexport ${aFile} PS
41
9aa684ed 42if { [string compare $tcl_platform(platform) "windows"] != 0 } {
43 set refsize 10370
44} else {
c1e0171c 45 set refsize 10394
9aa684ed 46}
47
a8676008 48if { [file exists ${aFile}] } {
9aa684ed 49 puts "Export to PS format was done"
50 set filesize [file size ${aFile}]
51 if { $filesize != $refsize } {
52 puts "Error: Export to PS file was done but size of file is incorrect (refsize = $refsize, current = $filesize)."
53 puts "Error: Compare content of resulting PS file with reference."
54 puts "Error: Update refsize if it's necessary."
55 }
a8676008 56} else {
9aa684ed 57 puts "Faulty : Export to PS format was not done"
a8676008 58}
9aa684ed 59
60set only_screen 1