0027704: Numeric inaccuracy due to huge extension of the offset faces
[occt.git] / tests / 3rdparty / export / end
CommitLineData
40093367 1vexport ${aFile} ${format}
5747059b 2vglinfo
3checkview -screenshot -3d -path ${imagedir}/${test_image}.png
40093367 4
5if { [file exists ${aFile}] } {
94a57f1f 6 puts "The file has been exported to ${format}."
40093367 7 set filesize [file size ${aFile}]
5747059b 8
9 # Check if difference of size is more 5%
40093367 10 if { $filesize < $size && [expr 1.*($size - $filesize)/$size] > 0.05 } {
5747059b 11 puts "Error: The file has been exported to ${format}, but the result has a different size ($filesize instead of $size)."
40093367 12 }
13} else {
94a57f1f 14 puts "Error: Impossible to export file to ${format}."
40093367 15}