0026196: Wrong result obtained by projection algorithm.
[occt.git] / tests / bugs / modalg_6 / bug24357
1 puts "========"
2 puts "OCC24357"
3 puts "========"
4 puts ""
5 ###########################################################
6 # BRepBuilderAPI_Sewing returns result with too high tolerance
7 ###########################################################
8
9 restore [locate_data_file bug24357_faces.brep] f
10 whatis f
11 tolerance f
12 sewing r 0.2 f
13 whatis r
14
15 regexp {Tolerance +MAX=([-0-9.+eE]+)} [tolerance r] full MaxTolerance
16 puts "MaxTolerance=$MaxTolerance"
17
18 set expected_MaxTolerance 0.00068453844086764995
19 set tol_abs_MaxTolerance  0.00001
20 set tol_rel_MaxTolerance  0.00001
21 checkreal "MaxTolerance" ${MaxTolerance} ${expected_MaxTolerance} ${tol_abs_MaxTolerance} ${tol_rel_MaxTolerance}
22
23 smallview
24 donly r
25 fit
26 xwd ${imagedir}/${casename}_1.png
27
28 vinit
29 vsetdispmode 1
30 vdisplay r
31 vfit
32 vdump ${imagedir}/${casename}_2.png