From c316aae7cd30a19b6f838c7f22064b51b3d03230 Mon Sep 17 00:00:00 2001 From: Paul RASCLE Date: Sun, 19 Jun 2016 17:42:25 +0200 Subject: [PATCH] split polylines, missing points --- src/HYDROData/HYDROData_PolylineXY.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.39.2