1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-05-26 11:05:31 +03:00
occt/tests/bugs/modalg_6/bug27766
nbv ae54125247 0027766: Incorrect section curves between attached cylinders
2d-tolerance has been bounded above (earlier it was too big for precise computation).

Creation of the test case for this issue.
Adjusting some test cases according to their new behavior.

Adjusting test case according to its new behavior.
2016-08-18 14:46:35 +03:00

31 lines
676 B
Plaintext

puts "========"
puts "OCC27766"
puts "========"
puts ""
#################################################
# Incorrect section curves between attached cylinders
#################################################
set ExpTol 1.0e-7
set GoodNbCurv 5
restore [locate_data_file bug27761_c1.brep] c1
restore [locate_data_file bug27761_c2.brep] c2
set log [bopcurves c1 c2 -2d]
regexp {Tolerance Reached=+([-0-9.+eE]+)\n+([-0-9.+eE]+)} ${log} full Toler NbCurv
if {${NbCurv} != ${GoodNbCurv}} {
puts "Error: Number of curves is bad!"
}
checkreal TolReached $Toler $ExpTol 0.0 0.1
smallview
don c_*
fit
disp c1 c2
checkview -screenshot -2d -path ${imagedir}/${test_image}.png