]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/GeomAlgoAPI/GeomAlgoAPI_CurveBuilder.cpp
Salome HOME
updated copyright message
[modules/shaper.git] / src / GeomAlgoAPI / GeomAlgoAPI_CurveBuilder.cpp
index 4e229efc0c399443ac528c8dccfee2337000555b..c24b3bc810d09fdd8972a08a057499c7c07c4b18 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2014-2019  CEA/DEN, EDF R&D
+// Copyright (C) 2014-2023  CEA, EDF
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
@@ -172,7 +172,6 @@ void GeomAlgoAPI_CurveBuilder::reorderPoints(std::list<GeomPointPtr>& thePoints)
     return;
   }
 
-  int aNbDup = 0;
   std::list<GeomPointPtr>::iterator aPIt = thePoints.begin();
   GeomPointPtr aPrevPnt = *aPIt;
   for (; aPIt != thePoints.end(); ++aPIt) {
@@ -199,8 +198,8 @@ void GeomAlgoAPI_CurveBuilder::reorderPoints(std::list<GeomPointPtr>& thePoints)
     aNextIt = aPIt; ++aNextIt;
     if (aNearestIt != aNextIt) {
       // Keep given order of points to use it in case of equidistant candidates
-      //               .-<---<-.
-      //              /         \
+      //              .--<---<--.
+      //             |           |
       // o  o  o  c  o->o->o->o->n  o  o
       //          |  |           |
       //          i i+1       nearest