]> OCCT Git - occt.git/commitdiff
0033781: Modeling Algorithms - Using incorrect boundaries while traversing through... IR-2024-08-02
authoranv <anv@opencascade.com>
Fri, 26 Jul 2024 13:49:03 +0000 (14:49 +0100)
committerdpasukhi <dmitry.pasukhin@opencascade.com>
Mon, 5 Aug 2024 08:28:17 +0000 (08:28 +0000)
Upper boundary updated for triangulation normals traversing.

src/BRepTools/BRepTools_TrsfModification.cxx

index c8252f6caf3da4dde3b02e738e7dd5cc08a5ec5e..63ac4565f40b8a00e222da0525d2499e313f9c02 100644 (file)
@@ -171,7 +171,7 @@ Standard_Boolean BRepTools_TrsfModification::NewTriangulation
   // modify normals
   if (theTriangulation->HasNormals())
   {
-    for (Standard_Integer anInd = 1; anInd <= theTriangulation->NbTriangles(); ++anInd)
+    for (Standard_Integer anInd = 1; anInd <= theTriangulation->NbNodes(); ++anInd)
     {
       gp_Dir aNormal = theTriangulation->Normal(anInd);
       aNormal.Transform(aTrsf);