From 9cd0c77e152ba53ff76b4d2c2a1e9de7e7614244 Mon Sep 17 00:00:00 2001 From: oan Date: Thu, 7 Nov 2019 12:25:57 +0300 Subject: [PATCH] 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. --- src/BRepMesh/BRepMesh_CurveTessellator.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/BRepMesh/BRepMesh_CurveTessellator.cxx b/src/BRepMesh/BRepMesh_CurveTessellator.cxx index 105df23e90..69b1df25c6 100644 --- a/src/BRepMesh/BRepMesh_CurveTessellator.cxx +++ b/src/BRepMesh/BRepMesh_CurveTessellator.cxx @@ -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; } //======================================================================= -- 2.39.5