From d79fc05657cfa43ed1cd6937a5acaeaf70e09b45 Mon Sep 17 00:00:00 2001 From: Eduardo DAVILA Date: Wed, 3 Feb 2021 18:58:32 +0100 Subject: [PATCH] # --- ...bcreaMaracasVisuManualContourModel_Box.cxx | 87 ++++++++++++++++++- 1 file changed, 86 insertions(+), 1 deletion(-) diff --git a/bbtk/src/bbcreaMaracasVisuManualContourModel_Box.cxx b/bbtk/src/bbcreaMaracasVisuManualContourModel_Box.cxx index 2b24042..e1717ca 100644 --- a/bbtk/src/bbcreaMaracasVisuManualContourModel_Box.cxx +++ b/bbtk/src/bbcreaMaracasVisuManualContourModel_Box.cxx @@ -242,6 +242,8 @@ printf("EED ManualContourModel_Box::ClockwisePoints cx=%f cy=%f cz=%f flagAng } // for iLstIndexIn } + +/* void ManualContourModel_Box::ShiftValues( std::vector *lstInX, std::vector *lstInY, std::vector *lstInZ, @@ -372,6 +374,88 @@ printf("EED ManualContourModel_Box::ShiftValues px=%f py=%f pz=%f iBack=%d/%d } // if sizeLstIndexIn } +*/ + + + +void ManualContourModel_Box::ShiftValues( std::vector *lstInX, + std::vector *lstInY, + std::vector *lstInZ, + std::vector *lstIndexsIn ) +{ + int iLstIndexIn,sizeLstIndexIn=lstIndexsIn->size(); + int ii, iGeneral=0; + int size,size2; + double dist,distMin; + int i,iBack; + int ig; + double dx,dy,dz; + std::vector LstTmpX; + std::vector LstTmpY; + std::vector LstTmpZ; + if (sizeLstIndexIn>=2) + { + + for (iLstIndexIn=0; iLstIndexIn