From: Paul RASCLE Date: Sun, 19 Jun 2016 15:42:25 +0000 (+0200) Subject: split polylines, missing points X-Git-Tag: v1.6~103 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c316aae7cd30a19b6f838c7f22064b51b3d03230;p=modules%2Fhydro.git split polylines, missing points --- diff --git a/src/HYDROData/HYDROData_PolylineXY.cxx b/src/HYDROData/HYDROData_PolylineXY.cxx index 5eb6ed56..69d291d9 100644 --- a/src/HYDROData/HYDROData_PolylineXY.cxx +++ b/src/HYDROData/HYDROData_PolylineXY.cxx @@ -554,7 +554,7 @@ bool convertEdgesToSections( const TopoDS_Edge& HYDROData_PolylineXY::PointsList aSectPoints = theOldPolyline->GetPoints(isec, false); int nbPoints = aSectPoints.Length(); if (forward) - for (int i=1; i0; i--) + for (int i=nbPoints; i>0; i--) { HYDROData_PolylineXY::Point aPoint = aSectPoints.Value(i); gp_XYZ p(aPoint.X(), aPoint.Y(), 0);