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:
@@ -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;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
|
Reference in New Issue
Block a user