1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-14 13:30:48 +03:00

0027226: Meshing algorithm fails if edge curves has small defects (bends, loops...)

Take into account tolerance of edge vertices in order to reduce density of discretization points.
This commit is contained in:
oan
2019-11-07 12:25:57 +03:00
parent 0d5b7b80e0
commit 9cd0c77e15

View File

@@ -230,9 +230,9 @@ Standard_Boolean BRepMesh_CurveTessellator::Value (
thePoint = myDiscretTool.Value (theIndex);
theParameter = myDiscretTool.Parameter (theIndex);
/*if (!isInToleranceOfVertex(thePoint, myFirstVertex) &&
if (!isInToleranceOfVertex(thePoint, myFirstVertex) &&
!isInToleranceOfVertex(thePoint, myLastVertex))
{*/
{
if (!myCurve.IsCurveOnSurface())
{
return Standard_True;
@@ -268,9 +268,9 @@ Standard_Boolean BRepMesh_CurveTessellator::Value (
aSurface->D0(aUV.X(), aUV.Y(), aPntOnSurf);
return (thePoint.SquareDistance(aPntOnSurf) < myEdgeSqTol);
/*}
}
return Standard_False;*/
return Standard_False;
}
//=======================================================================