1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-04 13:13:25 +03:00
Files
occt/tests/lowalgos/intss/bug27263
nbv a6ebe9fc7c 0028493: [Regression vs 7.0.0] Intersection algorithm produces curve with loop
1. New testgrid "lowalgos/intss" has been created. It will contain all test cases on geometrical intersection of two surfaces ("intersect" DRAW-command) and two faces ("bopcurves" DRAW-command).

2. New test case for the issue #28493 has been created because the problem is not reproduced on MASTER.

3. Test case (lowalgos/intss/bug24472) for the issue #29501 has been modified in order to check loops of the resulting intersection curves.
2018-10-30 16:04:24 +03:00

34 lines
795 B
Plaintext

puts "================"
puts "OCC27263"
puts "================"
puts ""
#######################################################################
# Regression vs 6.9.1: Exception is raised during intersection of two faces
#######################################################################
set MaxTol 1.e-7
set GoodNbCurv 1
restore [locate_data_file bug27262_cmpd.brep] b
explode b
smallview
explode b_1 f
don b_1_27 b_2
fit
set log [bopcurves b_1_27 b_2 -2d]
regexp {Tolerance Reached=+([-0-9.+ee]+)\n+([-0-9.+ee]+)} ${log} full Toler NbCurv
if {${Toler} > ${MaxTol}} {
puts "Error: Tolerance is too big!"
}
if {${NbCurv} != ${GoodNbCurv}} {
puts "Error: Curve Number is bad!"
}
checklength c_1 -l 2.9620641619623407
checkview -screenshot -2d -path ${imagedir}/${test_image}.png