0027341: Incorrect exact HLR results
[occt.git] / tests / bugs / modalg_6 / bug27310_1
CommitLineData
79997052 1puts "========"
2puts "OCC27310"
3puts "========"
4puts ""
5#################################################
6# Huge tolerance obtained in the result of intersection of two cylindrical faces
7#################################################
8
9set ExpTol 1.0e-7
10set GoodNbCurv 2
11
12restore [locate_data_file OCC496a.brep] a
13restore [locate_data_file OCC496b.brep] b
14
15explode a f
16explode b f
17
18set log [bopcurves a_8 b_2 -2d]
19
20regexp {Tolerance Reached=+([-0-9.+eE]+)\n+([-0-9.+eE]+)} ${log} full Toler NbCurv
21
22if {${NbCurv} != ${GoodNbCurv}} {
23 puts "Error: Number of curves is bad!"
24}
25
26checkreal TolReached $Toler $ExpTol 0.0 0.1
27
28smallview
29don c_*
30fit
31disp a_8 b_2
32
33checkview -screenshot -2d -path ${imagedir}/${test_image}.png