1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-06-30 12:14:08 +03:00
occt/tests/bugs/modalg_6/bug27310_2
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

34 lines
741 B
Plaintext

puts "========"
puts "OCC27310"
puts "========"
puts ""
#################################################
# Huge tolerance obtained in the result of intersection of two cylindrical faces
#################################################
set ExpTol 0.00027580830315682321
set GoodNbCurv 2
restore [locate_data_file OCC496a.brep] a
restore [locate_data_file OCC496b.brep] b
explode a f
explode b f
set log [bopcurves a_10 b_4 -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 a_10 b_4
checkview -screenshot -2d -path ${imagedir}/${test_image}.png