0027715: Visualization - turn off deprecated OpenGL fixed-function pipeline by default
[occt.git] / tests / bugs / vis / bug21091_9
... / ...
CommitLineData
1puts "============"
2puts "OCC21091"
3puts "OCC21450"
4puts "============"
5puts ""
6
7vfont add [locate_data_file DejaVuSans.ttf] SansFont
8
9vinit
10vtrihedron trihedron
11
12vpoint p1 -300 -300 -300
13vdrawtext 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
14
15vpoint p2 -300 -300 -100
16vdrawtext 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
17
18vpoint p3 -100 -100 -300
19vdrawtext 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
20
21vpoint p4 -100 -100 -100
22vdrawtext 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
23
24
25vpoint p5 -300 -100 -300
26vdrawtext 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
27
28vpoint p6 -100 -300 -300
29vdrawtext 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
30
31vpoint p7 -300 -100 -100
32vdrawtext 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
33
34vpoint p8 -100 -300 -100
35vdrawtext 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
36
37vaxis ax1 100 100 100 100 100 0
38
39box a 110 110 110 200 200 200
40vdisplay a
41
42file delete -force ${imagedir}/${test_image}.pgf
43set aFile ${imagedir}/${test_image}.pgf
44
45vcaps -ffp 1
46vexport ${aFile} PGF
47
48if { [checkplatform -windows] } {
49 set refsize 20810
50} else {
51 set refsize 20438
52}
53
54if { [file exists ${aFile}] } {
55 puts "Export to PGF file was done"
56 set filesize [file size ${aFile}]
57 if { $filesize != $refsize } {
58 puts "Error: Export to PGF file was done but size of file is incorrect (refsize = $refsize, current = $filesize)."
59 puts "Error: Compare content of resulting PGF file with reference."
60 puts "Error: Update refsize if it's necessary."
61 }
62} else {
63 puts "Faulty : Export to PGF file was not done"
64}
65
66checkview -screenshot -3d -path ${imagedir}/${test_image}.png