0027341: Incorrect exact HLR results
[occt.git] / tests / bugs / modalg_6 / bug26985
CommitLineData
3bfd1ba8 1puts "============"
2puts "OCC26985"
3puts "============"
4puts ""
5#######################################################################
6# Wrong section between two faces: it has a gap
7#######################################################################
8
9smallview
10
11set expected_MaxTolerance 1.50777e-005
12set tol_abs_MaxTolerance 1.e-06
13set tol_rel_MaxTolerance 1.e-06
14
15restore [locate_data_file bug26985_f1f2.brep] a
16explode a
17
18bop a_1 a_2
19bopsection res
20donly res
21fit
22donly a_1 a_2 res
23
24checknbshapes res -vertex 2 -edge 1 -wire 0 -face 0 -shell 0 -solid 0 -compsolid 0 -compound 1 -shape 4
25
26checkshape res
27
28regexp {Tolerance +MAX=([-0-9.+eE]+)} [tolerance res] full MaxTolerance
29checkreal "MaxTolerance" ${MaxTolerance} ${expected_MaxTolerance} ${tol_abs_MaxTolerance} ${tol_rel_MaxTolerance}
30
31checkprops res -l 0.00503456