0027715: Visualization - turn off deprecated OpenGL fixed-function pipeline by default
[occt.git] / tests / bugs / vis / bug21091_7
... / ...
CommitLineData
1puts "============"
2puts "OCC21091"
3puts "OCC21450"
4puts "============"
5puts ""
6
7vfont add [locate_data_file DejaVuSans.ttf] SansFont
8
9vinit
10checkview -screenshot -3d -path ${imagedir}/${test_image}.png
11
12vtrihedron trihedron
13
14vpoint p1 -300 -300 -300
15vdrawtext 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
16
17vpoint p2 -300 -300 -100
18vdrawtext 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
19
20vpoint p3 -100 -100 -300
21vdrawtext 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
22
23vpoint p4 -100 -100 -100
24vdrawtext 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
25
26
27vpoint p5 -300 -100 -300
28vdrawtext 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
29
30vpoint p6 -100 -300 -300
31vdrawtext 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
32
33vpoint p7 -300 -100 -100
34vdrawtext 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
35
36vpoint p8 -100 -300 -100
37vdrawtext 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
38
39vaxis ax1 100 100 100 100 100 0
40
41box a 110 110 110 200 200 200
42vdisplay a
43
44set aFile $imagedir/${test_image}.tex
45
46vcaps -ffp 1
47vexport ${aFile} TEX
48
49if { [file exists ${aFile}] } {
50 puts "Export to TEX file was done"
51 set filesize [file size ${aFile}]
52 puts "Size of TEX file = $filesize"
53 if { $filesize > 1500 } {
54 puts "Faulty : Export to TEX file was done but size of file is incorrect"
55 }
56} else {
57 puts "Faulty : Export to TEX file was not done"
58}