]> Creatis software - creaMaracasVisu.git/commitdiff
#3486 ShowNPoints bug insert first/last point
authorEduardo DAVILA <davila@creatis.insa-lyon.fr>
Mon, 27 Jun 2022 09:40:41 +0000 (11:40 +0200)
committerEduardo DAVILA <davila@creatis.insa-lyon.fr>
Mon, 27 Jun 2022 09:40:41 +0000 (11:40 +0200)
lib/maracasVisuLib/src/interface/wxWindows/widgets/ModelShowNPoints.cxx

index f36297f2b7c8422ac2d8131440be6c9fa9d9d792..bb59af53706392082a2e52108427c371bfc38994 100644 (file)
@@ -160,7 +160,7 @@ int ModelShowNPoints::InsertPoint(int x, int y, int z, std::string label)
                }
                
         
-        // In open contour case
+        //  *************** Open contour case Start *******************
         if (lstPointsX.size()==2)
         {
             double cx,cy,cz,r1,r2;
@@ -181,7 +181,6 @@ int ModelShowNPoints::InsertPoint(int x, int y, int z, std::string label)
                 pos=2;
                 }
             }
-
         }
         if (lstPointsX.size()>2)
         {
@@ -207,6 +206,7 @@ int ModelShowNPoints::InsertPoint(int x, int y, int z, std::string label)
                 }
             }
         }
+        //  *************** Open contour case End *******************
 
         
                std::vector<int>::iterator it;