1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-09-03 14:10:33 +03:00

0028718: Section result has a break

Fix of the problem.
This commit is contained in:
nbv
2017-05-18 15:31:13 +03:00
parent be81259513
commit 074eb06e7a
2 changed files with 35 additions and 2 deletions

View File

@@ -1025,12 +1025,15 @@ Standard_Real IntTools_FaceFace::ComputeTolerance()
}
}// if ((aType1==GeomAbs_Plane && aType2==GeomAbs_Torus) ||
//
else if ((aType1 == GeomAbs_Plane && aType2 == GeomAbs_SurfaceOfExtrusion) ||
(aType2 == GeomAbs_Plane && aType1 == GeomAbs_SurfaceOfExtrusion))
{
myTolReached3d = ComputeTolerance();
}
else if ((aType1==GeomAbs_SurfaceOfRevolution && aType2==GeomAbs_Cylinder) ||
(aType2==GeomAbs_SurfaceOfRevolution && aType1==GeomAbs_Cylinder) ||
(aType1==GeomAbs_Plane && aType2==GeomAbs_Sphere) ||
(aType2==GeomAbs_Plane && aType1==GeomAbs_Sphere) ||
(aType1==GeomAbs_Plane && aType2==GeomAbs_SurfaceOfExtrusion) ||
(aType2==GeomAbs_Plane && aType1==GeomAbs_SurfaceOfExtrusion) ||
(aType1==GeomAbs_Plane && aType2==GeomAbs_BSplineSurface) ||
(aType2==GeomAbs_Plane && aType1==GeomAbs_BSplineSurface) ||
(aType1==GeomAbs_Cylinder && aType2==GeomAbs_BSplineSurface) ||

View File

@@ -0,0 +1,30 @@
puts "========"
puts "OCC28718"
puts "========"
puts ""
#################################################
# Section result has a break
#################################################
set ExpTol 1.0665733242938802e-008
restore [locate_data_file bug28718_bulk_1.brep] b1
restore [locate_data_file bug28718_hull.brep] b2
####
explode b1 f
explode b2 f
axo
don b2_61
fit
set log [bopcurves b1_1 b2_61 -2d]
regexp {Tolerance Reached=+([-0-9.+eE]+)\n+([-0-9.+eE]+)} ${log} full Toler NbCurv
checkreal TolReached $Toler $ExpTol 0.0 0.1
bsection result b1 b2
set length 19.1199
set 2dviewer 1