a8676008 |
1 | puts "============" |
2 | puts "OCC21091" |
3 | puts "OCC21450" |
4 | puts "============" |
5 | puts "" |
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 EPS format |
9 | |
10 | vinit |
a8676008 |
11 | vtrihedron trihedron |
12 | |
13 | vpoint p1 -300 -300 -300 |
29e2c6d2 |
14 | vdrawtext OC0 OpenCascade -pos -300 -300 -300 -color 0.0 1.0 0.0 -halign left -valign bottom -angle 000 -zoom 0 -height 15 -aspect regular -font Courier |
15 | |
a8676008 |
16 | vpoint p2 -300 -300 -100 |
29e2c6d2 |
17 | vdrawtext OC1 OpenCascade -pos -300 -300 -100 -color 0.0 1.0 0.0 -halign left -valign bottom -angle 000 -zoom 0 -height 15 -aspect regular -font Courier |
18 | |
a8676008 |
19 | vpoint p3 -100 -100 -300 |
29e2c6d2 |
20 | vdrawtext OC2 OpenCascade -pos -100 -100 -300 -color 0.0 1.0 0.0 -halign left -valign bottom -angle 000 -zoom 0 -height 15 -aspect regular -font Courier |
21 | |
a8676008 |
22 | vpoint p4 -100 -100 -100 |
29e2c6d2 |
23 | vdrawtext OC3 OpenCascade -pos -100 -100 -100 -color 0.0 1.0 0.0 -halign left -valign bottom -angle 000 -zoom 0 -height 15 -aspect regular -font Courier |
a8676008 |
24 | |
25 | |
26 | vpoint p5 -300 -100 -300 |
29e2c6d2 |
27 | vdrawtext OC4 OpenCascade -pos -300 -100 -300 -color 0.0 1.0 0.0 -halign left -valign bottom -angle 000 -zoom 0 -height 15 -aspect regular -font Courier |
28 | |
a8676008 |
29 | vpoint p6 -100 -300 -300 |
29e2c6d2 |
30 | vdrawtext OC5 OpenCascade -pos -100 -300 -300 -color 0.0 1.0 0.0 -halign left -valign bottom -angle 000 -zoom 0 -height 15 -aspect regular -font Courier |
31 | |
a8676008 |
32 | vpoint p7 -300 -100 -100 |
29e2c6d2 |
33 | vdrawtext OC6 OpenCascade -pos -300 -100 -100 -color 0.0 1.0 0.0 -halign left -valign bottom -angle 000 -zoom 0 -height 15 -aspect regular -font Courier |
a8676008 |
34 | |
29e2c6d2 |
35 | vpoint p8 -100 -300 -100 |
36 | vdrawtext OC7 OpenCascade -pos -100 -300 -100 -color 0.0 1.0 0.0 -halign left -valign bottom -angle 000 -zoom 0 -height 15 -aspect regular -font Courier |
a8676008 |
37 | vaxis ax1 100 100 100 100 100 0 |
38 | |
39 | box a 110 110 110 200 200 200 |
40 | vdisplay a |
41 | |
9aa684ed |
42 | file delete -force ${imagedir}/${test_image}.eps |
43 | set aFile ${imagedir}/${test_image}.eps |
a8676008 |
44 | |
45 | vexport ${aFile} EPS |
46 | |
9aa684ed |
47 | if { [string compare $tcl_platform(platform) "windows"] != 0 } { |
48 | set refsize 10314 |
49 | } else { |
c1e0171c |
50 | set refsize 10338 |
9aa684ed |
51 | } |
52 | |
a8676008 |
53 | if { [file exists ${aFile}] } { |
54 | puts "Export to EPS file was done" |
55 | set filesize [file size ${aFile}] |
9aa684ed |
56 | if { $filesize != $refsize } { |
57 | puts "Error: Export to EPS file was done but size of file is incorrect (refsize = $refsize, current = $filesize)." |
58 | puts "Error: Compare content of resulting EPS file with reference." |
59 | puts "Error: Update refsize if it's necessary." |
60 | } |
61 | } else { |
62 | puts "Faulty : Export to EPS file was not done" |
63 | } |
64 | |
29e2c6d2 |
65 | set only_screen 1 |