4e14c88f |
1 | puts "============" |
2 | puts "OCC26431" |
3 | puts "============" |
4 | puts "" |
5 | ############################### |
6 | ## Can't cut a sphere from a cylinder |
7 | ############################### |
8 | |
9 | restore [locate_data_file bug26431_Body.brep] b1 |
10 | restore [locate_data_file bug26431_Sphere.brep] b2 |
11 | |
12 | explode b1 f |
13 | explode b2 f |
14 | |
15 | set log [bopcurves b1_3 b2_1 -2d] |
16 | regexp {Tolerance Reached=+([-0-9.+eE]+)\n+([-0-9.+eE]+)} ${log} full Tolerance_Reached NbCurv |
17 | |
18 | set expected_Tolerance_Reached 6.1899285293702062e-006 |
19 | set tol_abs_Tolerance_Reached 1.0e-7 |
20 | set tol_rel_Tolerance_Reached 0.0 |
21 | checkreal "Tolerance Reached" ${Tolerance_Reached} ${expected_Tolerance_Reached} ${tol_abs_Tolerance_Reached} ${tol_rel_Tolerance_Reached} |