1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-10 18:51:21 +03:00
occt/tests/bugs/modalg_6/bug27884
abulyche 715fcb5a92 0027884: Modeling Algorithms - Possible improvement for 2d classifier
Added the implementation of bndbox<->line and bndbox<->segment intersections for 2D to Bnd_Box2d
Added the speedup for 2d classification to BRepClass_Intersector.cxx
Added the test for our improvement
2021-08-13 20:22:41 +03:00

43 lines
901 B
Plaintext

puts "================================================================="
puts "OCC27884: Modeling Algorithms - Possible improvement for 2d classifier"
puts "================================================================="
puts ""
pload ALL
pload QAcommands
circle c 1 0 0 150
set res1 [OCC27884 c 400 0]
regexp {Improving time: +([-0-9.+eE]+) %} $res1 full time1
if { $time1 <= 5 } {
puts "Error: algorithm slowed down"
}
set res2 [OCC27884 c 250 1]
regexp {Improving time: +([-0-9.+eE]+) %} $res2 full time2
if { $time2 <= 5 } {
puts "Error: algorithm slowed down"
}
convert c1 c
set res3 [OCC27884 c1 350 2]
regexp {Improving time: +([-0-9.+eE]+) %} $res3 full time3
if { $time3 <= 15 } {
puts "Error: algorithm slowed down"
}
set res4 [OCC27884 c1 250 1]
regexp {Improving time: +([-0-9.+eE]+) %} $res4 full time4
if { $time4 <= 15 } {
puts "Error: algorithm slowed down"
}