From: Eduardo DAVILA Date: Tue, 28 Mar 2023 11:50:52 +0000 (+0200) Subject: Clean Code MacOs X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=d9218d8a9a3c66400c0e8148806b37d0b8e11123;p=creaMaracasVisu.git Clean Code MacOs --- diff --git a/bbtk/src/bbcreaMaracasVisuShowNPoints_Tools.cxx b/bbtk/src/bbcreaMaracasVisuShowNPoints_Tools.cxx index 99f5120..8fdf584 100644 --- a/bbtk/src/bbcreaMaracasVisuShowNPoints_Tools.cxx +++ b/bbtk/src/bbcreaMaracasVisuShowNPoints_Tools.cxx @@ -42,10 +42,22 @@ void ShowNPoints_Tools::CreatePatch_3points() std::vector lstY = wsp->GetModelShowNPoints()->GetLstPointsY(); std::vector 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);