]> OCCT Git - occt-copy.git/commitdiff
0027226: Meshing algorithm fails if edge curves has small defects (bends, loops...) CR27226_1
authoroan <oan@opencascade.com>
Thu, 7 Nov 2019 09:25:57 +0000 (12:25 +0300)
committeroan <oan@opencascade.com>
Thu, 7 Nov 2019 09:25:57 +0000 (12:25 +0300)
Take into account tolerance of edge vertices in order to reduce density of discretization points.

src/BRepMesh/BRepMesh_CurveTessellator.cxx

index 105df23e90cf59c4b9a683b2abe93428c391c36f..69b1df25c69eabbcc5784d4e29447ba2cd0e51ad 100644 (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;
 }
 
 //=======================================================================