X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FmaracasVisuLib%2Fsrc%2Finterface%2FwxWindows%2FContour%2FAutoControlPoints.cxx;h=0e14ca465fecdd1623fab43b109aac018cf11641;hb=0cc1383dff9255c9929097bbe9f44a6f4f31c97a;hp=c17c1c5a2d0ac25939cb472ed0d3d6a79b443141;hpb=4443a8fe2b4992b6abee8531917fd0803018fc12;p=creaMaracasVisu.git diff --git a/lib/maracasVisuLib/src/interface/wxWindows/Contour/AutoControlPoints.cxx b/lib/maracasVisuLib/src/interface/wxWindows/Contour/AutoControlPoints.cxx index c17c1c5..0e14ca4 100644 --- a/lib/maracasVisuLib/src/interface/wxWindows/Contour/AutoControlPoints.cxx +++ b/lib/maracasVisuLib/src/interface/wxWindows/Contour/AutoControlPoints.cxx @@ -322,7 +322,7 @@ void AutoControlPoints::InterCircle(std::vector*InX, std::vector _circleY.push_back(tempY[i]); m1 = Slope(tempX[i],tempY[i],cx,cy);//slope of the radius min = 9999; - for(j=0; jsize(); j++) + for(j=0; j<(int)(InX->size()); j++) { jj = (j+1)%(InX->size()); m2 = Slope((*InX)[j],(*InY)[j],(*InX)[jj],(*InY)[jj]);//Slope of the vector between the adjacent points @@ -893,7 +893,7 @@ printf("\n XMAX = %f, YMAX = %f, XX = %f, YY = %f",xmax,ymax,xx,yy); if(posA