0028802: The tolerance reached by approximator is used in creation of an edge, it...
[occt.git] / tests / bugs / modalg_6 / bug27310_2
CommitLineData
79997052 1puts "========"
2puts "OCC27310"
3puts "========"
4puts ""
5#################################################
6# Huge tolerance obtained in the result of intersection of two cylindrical faces
7#################################################
8
261b7d9e 9# Number of intersection curves cannot be subject to anything (indeed, output result can be empty).
10# The main reason of the bug #27310 was a HUGE TOLERANCE VALUE (TolReached > 10).
11# See test "bugs moddata_2 bug496" in case of doubt.
12
bdae3beb 13set ExpTol 9.9999999999999995e-08
79997052 14
15restore [locate_data_file OCC496a.brep] a
16restore [locate_data_file OCC496b.brep] b
17
18explode a f
19explode b f
20
21set log [bopcurves a_10 b_4 -2d]
22
23regexp {Tolerance Reached=+([-0-9.+eE]+)\n+([-0-9.+eE]+)} ${log} full Toler NbCurv
24
261b7d9e 25checkreal TolReached $Toler $ExpTol 0.0 0.1