0029196: Tests - some test cases fail with Intel HD graphics
[occt.git] / tests / bugs / vis / bug21091_5
CommitLineData
a8676008 1puts "============"
2puts "OCC21091"
3puts "OCC21450"
4puts "============"
5puts ""
a8676008 6
6fb1a930 7vfont add [locate_data_file DejaVuSans.ttf] SansFont
8
a8676008 9vinit
a8676008 10vtrihedron trihedron
11
12vpoint p1 -300 -300 -300
6fb1a930 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
29e2c6d2 14
a8676008 15vpoint p2 -300 -300 -100
6fb1a930 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
29e2c6d2 17
a8676008 18vpoint p3 -100 -100 -300
6fb1a930 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
29e2c6d2 20
a8676008 21vpoint p4 -100 -100 -100
6fb1a930 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
a8676008 23
24
25vpoint p5 -300 -100 -300
6fb1a930 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
29e2c6d2 27
a8676008 28vpoint p6 -100 -300 -300
6fb1a930 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
29e2c6d2 30
a8676008 31vpoint p7 -300 -100 -100
6fb1a930 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
29e2c6d2 33
a8676008 34vpoint p8 -100 -300 -100
6fb1a930 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
a8676008 36
37vaxis ax1 100 100 100 100 100 0
38
39box a 110 110 110 200 200 200
40vdisplay a
41
9aa684ed 42file delete -force ${imagedir}/${test_image}.ps
43set aFile ${imagedir}/${test_image}.ps
a8676008 44
be375252 45vcaps -ffp 1
a8676008 46vexport ${aFile} PS
47
7f83633f 48set refsize_min 9540
49set refsize_max 9570
9aa684ed 50
a8676008 51if { [file exists ${aFile}] } {
7f83633f 52 puts "Export to PS format successful"
9aa684ed 53 set filesize [file size ${aFile}]
7f83633f 54 if { $filesize < $refsize_min || $filesize > $refsize_max } {
55 puts "Error: Export to PS file was done but size of file is incorrect"
56 puts " (current = $filesize, expected to be in range \[$refsize_min, $refsize_max\])."
57 puts "Error: Update refsize limits if necessary."
9aa684ed 58 }
a8676008 59} else {
7f83633f 60 puts "Error: Export to PS format has failed"
a8676008 61}
9aa684ed 62
5747059b 63checkview -screenshot -3d -path ${imagedir}/${test_image}.png