0027310: Huge tolerance obtained in the result of intersection of two cylindrical...
[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
9set ExpTol 7.7015195151142059e-006
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_10 b_4 -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_10 b_4
32
33checkview -screenshot -2d -path ${imagedir}/${test_image}.png