979866068f3acdbf989b8b97ca51f0b6d442a855
[occt.git] / tests / bugs / vis / bug21091_3
1 puts "============"
2 puts "OCC21091"
3 puts "OCC21450"
4 puts "============"
5 puts ""
6
7 pload XSDRAW
8 vinit
9
10 meshfromstl m [locate_data_file shape.stl]
11
12 meshtext m
13
14 vsetdispmode m 34
15
16 file delete -force ${imagedir}/${test_image}.pdf
17 set aFile ${imagedir}/${test_image}.pdf
18
19 vcaps -ffp 1
20 vexport ${aFile} PDF
21
22 if { [checkplatform -windows] } {
23    set refsize 153993
24 } else {
25    set refsize 144401
26 }
27
28 if { [file exists ${aFile}] } {
29    puts "Export to PDF file was done"
30    set filesize [file size ${aFile}]
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."
35    }
36 } else {
37    puts "Faulty : Export to PDF file was not done"
38 }
39
40 checkview -screenshot -3d -path ${imagedir}/${test_image}.png
41