1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-04 18:06:22 +03:00
occt/tests/perf/modalg/bug26310_1
ifv 64e8b010af 0031552: Bad performance of intersection of cylindrical surfaces
Adjusting parameters of algorithm depending on axes and parameters of cylinders is added in order to reduce computation time

Test case added: tests/lowalgos/intss/bug31552

tests/perf/modalg/bug26310_1: test case corrected according to current state of algorithm
2020-05-15 18:00:48 +03:00

37 lines
871 B
Plaintext

puts "========"
puts "OCC26310"
puts "========"
puts ""
#################################################
# Very slow boolean cut operations on cylinders
#################################################
set ExpTol 3.05e-07
set GoodNbCurv 4
restore [locate_data_file OCC26310-b1.brep] b1
restore [locate_data_file OCC26310-b2.brep] b2
explode b1 f
explode b2 f
set log [bopcurves b1_1 b2_1 -2d]
regexp {Tolerance Reached=+([-0-9.+eE]+)\n+([-0-9.+eE]+)} ${log} full Toler NbCurv
checkreal ToleranceReached ${Toler} ${ExpTol} 0.0 0.01
if {${NbCurv} != ${GoodNbCurv}} {
puts "Error: Number of curves is bad!"
}
set log [bopcurves b2_1 b1_1 -2d]
regexp {Tolerance Reached=+([-0-9.+eE]+)\n+([-0-9.+eE]+)} ${log} full Toler NbCurv
checkreal ToleranceReached ${Toler} ${ExpTol} 0.0 0.01
if {${NbCurv} != ${GoodNbCurv}} {
puts "Error: Number of curves is bad!"
}