0027986: Visualization - AIS_InteractiveContext::SetLocation() does not update dynami...
[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
863f782a 22if { [checkplatform -windows] } {
9aa684ed 23 set refsize 153993
863f782a 24} else {
25 set refsize 144401
9aa684ed 26}
27
a8676008 28if { [file exists ${aFile}] } {
9aa684ed 29 puts "Export to PDF file was done"
a8676008 30 set filesize [file size ${aFile}]
9aa684ed 31 if { $filesize != $refsize } {
32 puts "Error: Export to PDF file was done but size of file is incorrect (refsize = $refsize, current = $filesize)."
33 puts "Error: Compare content of resulting PDF file with reference."
34 puts "Error: Update refsize if it's necessary."
a8676008 35 }
36} else {
9aa684ed 37 puts "Faulty : Export to PDF file was not done"
a8676008 38}
39
5747059b 40checkview -screenshot -3d -path ${imagedir}/${test_image}.png
a8676008 41