]> Creatis software - creaMaracasVisu.git/commitdiff
Clean Code MacOs
authorEduardo DAVILA <davila@creatis.insa-lyon.fr>
Tue, 28 Mar 2023 11:50:52 +0000 (13:50 +0200)
committerEduardo DAVILA <davila@creatis.insa-lyon.fr>
Tue, 28 Mar 2023 11:50:52 +0000 (13:50 +0200)
bbtk/src/bbcreaMaracasVisuShowNPoints_Tools.cxx

index 99f5120b474c3688dc36dfebd54ae091766df437..8fdf584b99a8ff9ab787c2cc92f1a856559fd130 100644 (file)
@@ -42,10 +42,22 @@ void ShowNPoints_Tools::CreatePatch_3points()
                std::vector<int> lstY = wsp->GetModelShowNPoints()->GetLstPointsY();
                std::vector<int> lstZ = wsp->GetModelShowNPoints()->GetLstPointsZ();
                
-               double pA[3] = {lstX[0],lstY[0],lstZ[0]};
-               double pB[3] = {lstX[1],lstY[1],lstZ[1]};
-               double pC[3] = {lstX[2],lstY[2],lstZ[2]};
-               
+//        double pA[3] = {lstX[0],lstY[0],lstZ[0]};
+        //        double pB[3] = {lstX[1],lstY[1],lstZ[1]};
+        //        double pC[3] = {lstX[2],lstY[2],lstZ[2]};
+               double pA[3];
+        pA[0] = lstX[0];
+        pA[1] = lstY[0];
+        pA[2] = lstZ[0];
+        double pB[3];
+        pB[0] = lstX[1];
+        pB[1] = lstY[1];
+        pB[2] = lstZ[1];
+        double pC[3];
+        pC[0] = lstX[2];
+        pC[1] = lstY[2];
+        pC[2] = lstZ[2];
+
                double v[3];
                double u[3];
                vtkMath::Subtract(pC,pA,v);