0027557: Unstable HLR tests
[occt.git] / tests / bugs / modalg_6 / bug26699
CommitLineData
71958f7d 1puts "================"
2puts "OCC26699"
3puts "================"
4puts ""
5#######################################################################
6# Wrong section curves
7#######################################################################
8
9set MaxTol 1.e-7
10set GoodNbCurv 2
11
12restore [locate_data_file bug26699_f1.brep] f1
13restore [locate_data_file bug26699_f2.brep] f2
14
15set log [bopcurves f1 f2 -2d]
16
17regexp {Tolerance Reached=+([-0-9.+eE]+)\n+([-0-9.+eE]+)} ${log} full Toler NbCurv
18
19if {${Toler} > ${MaxTol}} {
20 puts "Error: Tolerance is too big!"
21}
22
23if {${NbCurv} != ${GoodNbCurv}} {
24 puts "Error: Curve Number is bad!"
25}
3ad6d001 26checklength c_1 -l 3.0
27checklength c_2 -l 3.0
71958f7d 28
29axo
30donly f* c_*
31fit
5747059b 32checkview -screenshot -2d -path ${imagedir}/${test_image}.png