Files
OCCT/tests/bugs/moddata_3/bug27048_2
azv f3a1c0cb60 0027048: BSpline cache is always wrong outside of surface
1. Disable recalculation of B-spline cache when the parameter is out of surface boundary but near the cached span.
2. Rebuild cache each time a curve/surface is loaded into adaptor (B-spline knots may be re-parametrized outside adaptor without changing base curve)
3. Test cases.
2016-01-28 13:05:10 +03:00

29 lines
735 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
set only_screen_axo 1