0029196: Tests - some test cases fail with Intel HD graphics
[occt.git] / tests / bugs / vis / bug21091_3
CommitLineData
a8676008 1puts "============"
2puts "OCC21091"
3puts "OCC21450"
4puts "============"
5puts ""
a8676008 6
7pload XSDRAW
8vinit
a8676008 9
10meshfromstl m [locate_data_file shape.stl]
11
709e97a0 12meshtext m
13
14vsetdispmode m 34
a8676008 15
9aa684ed 16file delete -force ${imagedir}/${test_image}.pdf
17set aFile ${imagedir}/${test_image}.pdf
a8676008 18
be375252 19vcaps -ffp 1
a8676008 20vexport ${aFile} PDF
21
7f83633f 22set refsize_min 144000
23set refsize_max 154000
9aa684ed 24
a8676008 25if { [file exists ${aFile}] } {
7f83633f 26 puts "Export to PDF format successful"
a8676008 27 set filesize [file size ${aFile}]
7f83633f 28 if { $filesize < $refsize_min || $filesize > $refsize_max } {
29 puts "Error: Export to PDF file was done but size of file is incorrect"
30 puts " (current = $filesize, expected to be in range \[$refsize_min, $refsize_max\])."
31 puts "Error: Update refsize limits if necessary."
a8676008 32 }
33} else {
7f83633f 34 puts "Error: Export to PDF format has failed"
a8676008 35}
36
5747059b 37checkview -screenshot -3d -path ${imagedir}/${test_image}.png
a8676008 38