mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-09-08 14:17:06 +03:00
0028718: Section result has a break
Fix of the problem.
This commit is contained in:
@@ -1025,12 +1025,15 @@ Standard_Real IntTools_FaceFace::ComputeTolerance()
|
|||||||
}
|
}
|
||||||
}// if ((aType1==GeomAbs_Plane && aType2==GeomAbs_Torus) ||
|
}// 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) ||
|
else if ((aType1==GeomAbs_SurfaceOfRevolution && aType2==GeomAbs_Cylinder) ||
|
||||||
(aType2==GeomAbs_SurfaceOfRevolution && aType1==GeomAbs_Cylinder) ||
|
(aType2==GeomAbs_SurfaceOfRevolution && aType1==GeomAbs_Cylinder) ||
|
||||||
(aType1==GeomAbs_Plane && aType2==GeomAbs_Sphere) ||
|
(aType1==GeomAbs_Plane && aType2==GeomAbs_Sphere) ||
|
||||||
(aType2==GeomAbs_Plane && aType1==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) ||
|
(aType1==GeomAbs_Plane && aType2==GeomAbs_BSplineSurface) ||
|
||||||
(aType2==GeomAbs_Plane && aType1==GeomAbs_BSplineSurface) ||
|
(aType2==GeomAbs_Plane && aType1==GeomAbs_BSplineSurface) ||
|
||||||
(aType1==GeomAbs_Cylinder && aType2==GeomAbs_BSplineSurface) ||
|
(aType1==GeomAbs_Cylinder && aType2==GeomAbs_BSplineSurface) ||
|
||||||
|
30
tests/bugs/modalg_6/bug28718
Normal file
30
tests/bugs/modalg_6/bug28718
Normal 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
|
Reference in New Issue
Block a user