From: Eduardo DAVILA Date: Wed, 3 Feb 2021 17:58:32 +0000 (+0100) Subject: # X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=d79fc05657cfa43ed1cd6937a5acaeaf70e09b45;p=creaMaracasVisu.git # --- 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