a8676008 |
1 | puts "============" |
2 | puts "OCC21091" |
3 | puts "OCC21450" |
4 | puts "============" |
5 | puts "" |
a8676008 |
6 | |
6fb1a930 |
7 | vfont add [locate_data_file DejaVuSans.ttf] SansFont |
8 | |
a8676008 |
9 | vinit |
a8676008 |
10 | vtrihedron trihedron |
11 | |
12 | vpoint p1 -300 -300 -300 |
6fb1a930 |
13 | 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 SansFont |
29e2c6d2 |
14 | |
a8676008 |
15 | vpoint p2 -300 -300 -100 |
6fb1a930 |
16 | 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 SansFont |
29e2c6d2 |
17 | |
a8676008 |
18 | vpoint p3 -100 -100 -300 |
6fb1a930 |
19 | 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 SansFont |
29e2c6d2 |
20 | |
a8676008 |
21 | vpoint p4 -100 -100 -100 |
6fb1a930 |
22 | 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 SansFont |
a8676008 |
23 | |
24 | |
25 | vpoint p5 -300 -100 -300 |
6fb1a930 |
26 | 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 SansFont |
29e2c6d2 |
27 | |
a8676008 |
28 | vpoint p6 -100 -300 -300 |
6fb1a930 |
29 | 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 SansFont |
29e2c6d2 |
30 | |
a8676008 |
31 | vpoint p7 -300 -100 -100 |
6fb1a930 |
32 | 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 SansFont |
29e2c6d2 |
33 | |
a8676008 |
34 | vpoint p8 -100 -300 -100 |
6fb1a930 |
35 | 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 SansFont |
a8676008 |
36 | |
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}.svg |
43 | set aFile ${imagedir}/${test_image}.svg |
a8676008 |
44 | |
be375252 |
45 | vcaps -ffp 1 |
a8676008 |
46 | vexport ${aFile} SVG |
47 | |
863f782a |
48 | if { [checkplatform -windows] } { |
bc001a40 |
49 | set refsize 12127 |
863f782a |
50 | } else { |
bc001a40 |
51 | set refsize 12113 |
9aa684ed |
52 | } |
53 | |
a8676008 |
54 | if { [file exists ${aFile}] } { |
55 | puts "Export to SVG file was done" |
56 | set filesize [file size ${aFile}] |
9aa684ed |
57 | if { $filesize != $refsize } { |
58 | puts "Error: Export to SVG file was done but size of file is incorrect (refsize = $refsize, current = $filesize)." |
59 | puts "Error: Compare content of resulting SVG file with reference." |
60 | puts "Error: Update refsize if it's necessary." |
61 | } |
62 | } else { |
63 | puts "Faulty : Export to SVG file was not done" |
64 | } |
65 | |
5747059b |
66 | checkview -screenshot -3d -path ${imagedir}/${test_image}.png |