From d9218d8a9a3c66400c0e8148806b37d0b8e11123 Mon Sep 17 00:00:00 2001 From: Eduardo DAVILA Date: Tue, 28 Mar 2023 13:50:52 +0200 Subject: [PATCH] Clean Code MacOs --- .../bbcreaMaracasVisuShowNPoints_Tools.cxx | 20 +++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) 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); -- 2.47.1