1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-10 18:51:21 +03:00
occt/tests/bugs/moddata_3/bug27048_2
ski 5747059b21 0026833: Create command checkview containing all viewer types
Created command checkview for displaying shapes.
2016-02-05 11:14:37 +03:00

29 lines
775 B
Plaintext

puts "============"
puts "OCC27048"
puts "============"
puts ""
############################################################################
# Recalculation of BSpline cache causes a performance problems
############################################################################
pload XSDRAW
dchrono t reset
dchrono t start
testreadstep [locate_data_file bug27048.stp] result
dchrono t stop
set elapsed [dchrono t show]
regexp {CPU user time: ([-0-9.+eE]+) seconds} $elapsed full cpu_time
set max_time 40
if { $cpu_time > ${max_time} } {
puts "Error: reading document Doc is too long (greater than ${max_time} sec)"
} else {
puts "OK: performance reading document Doc is suitable"
}
smallview
fit
checkview -screenshot -2d -path ${imagedir}/${test_image}.png