From b73754097df8a9322acd19582168c968c6850e49 Mon Sep 17 00:00:00 2001 From: Eduardo DAVILA Date: Thu, 20 May 2021 08:19:06 +0200 Subject: [PATCH] #3463 box ManualContourModel optimisation of SIN() distribution by contour --- bbtk/src/bbcreaMaracasVisuManualContourModel_Box.cxx | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/bbtk/src/bbcreaMaracasVisuManualContourModel_Box.cxx b/bbtk/src/bbcreaMaracasVisuManualContourModel_Box.cxx index d887bdf..a46ca99 100644 --- a/bbtk/src/bbcreaMaracasVisuManualContourModel_Box.cxx +++ b/bbtk/src/bbcreaMaracasVisuManualContourModel_Box.cxx @@ -550,7 +550,7 @@ void ManualContourModel_Box::RedistributionPointsAllContours_SIN( std::vectorsizeContour2) && (sizeContour2>sizeContour3) ) + if ( (sizeContour1>=sizeContour2) && (sizeContour2>sizeContour3) ) { findAlphaBetaSinDistribution( &lstTmp2X,&lstTmp2Y,&lstTmp2Z ,sizeContour2, &lstTmp1X,&lstTmp1Y,&lstTmp1Z, &alpha,&beta); Redistribution_SIN( alpha,beta, &lstTmp2X,&lstTmp2Y,&lstTmp2Z ,sizeContour2, &lstTmp2aX,&lstTmp2aY,&lstTmp2aZ ); @@ -559,11 +559,7 @@ void ManualContourModel_Box::RedistributionPointsAllContours_SIN( std::vectorsizeContour2) && (sizeContour2sizeContour3) ) // Warning for a maximum local + if ( (sizeContour3!=-1) && (sizeContour1sizeContour3) ) // Warning for a maximum local { lstInconsistentContourY.push_back( lstTmp2Y[0] ); lstInconsistentContourID.push_back( iContour+1 ); @@ -606,7 +602,7 @@ void ManualContourModel_Box::RedistributionPointsAllContours_SIN( std::vectorsizeContour3) ) // Warning for a maximum local + if ( (sizeContour3!=-1) && (sizeContour1sizeContour3) ) // Warning for a maximum local { lstInconsistentContourY.push_back( lstTmp2Y[0] ); lstInconsistentContourID.push_back( iContour-1 ); -- 2.47.1