} else {
sizeContour3=-1;
}
- if ( (sizeContour1>sizeContour2) && (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 );
PutPointsInContour(&lstTmp2aX,&lstTmp2aY,&lstTmp2aZ, iContour+1 ,lstOutX,lstOutY,lstOutZ,lstIndexsOut);
CopyContour2InContour1( &lstTmp2aX,&lstTmp2aY,&lstTmp2aZ , &lstTmp1X,&lstTmp1Y,&lstTmp1Z );
} else {
- if ( (sizeContour1>sizeContour2) && (sizeContour2<sizeContour3) ) // Warning for a minimum local
- {
- lstContourExeption.push_back( iContour-1 );
- } // if minimum local
- if ( (sizeContour1<sizeContour2) && (sizeContour2>sizeContour3) ) // Warning for a maximum local
+ if ( (sizeContour3!=-1) && (sizeContour1<sizeContour2) && (sizeContour2>sizeContour3) ) // Warning for a maximum local
{
lstInconsistentContourY.push_back( lstTmp2Y[0] );
lstInconsistentContourID.push_back( iContour+1 );
{
lstContourExeption.push_back( iContour-1 );
} // if minimum local
- if ( (sizeContour1<sizeContour2) && (sizeContour2>sizeContour3) ) // Warning for a maximum local
+ if ( (sizeContour3!=-1) && (sizeContour1<sizeContour2) && (sizeContour2>sizeContour3) ) // Warning for a maximum local
{
lstInconsistentContourY.push_back( lstTmp2Y[0] );
lstInconsistentContourID.push_back( iContour-1 );