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

33 lines
744 B
Plaintext

puts "========"
puts "OCC26513"
puts "========"
puts ""
###########################################################
# Offset API not returning result (seems to be "hanging")
###########################################################
set max_time 10
smallview
restore [locate_data_file bug26513-offset_input.brep] a
offsetparameter 1.e-7 c i
offsetload a 5
dchrono cr reset
dchrono cr start
offsetperform result
dchrono cr stop
set chrono_info [dchrono cr show]
regexp {CPU user time: ([-0-9.+eE]+) seconds} $chrono_info full CPU_time
if { $CPU_time > ${max_time} } {
puts "ERROR: OCC26513 is reproduced. Offset operation is too long (> $max_time sec)"
}
donly result
fit
checkview -screenshot -2d -path ${imagedir}/${test_image}.png