Index: DamEngine/trunk/src/Deltares.DamEngine.Data/Geometry/GeometryLoop.cs =================================================================== diff -u -r6106 -r6245 --- DamEngine/trunk/src/Deltares.DamEngine.Data/Geometry/GeometryLoop.cs (.../GeometryLoop.cs) (revision 6106) +++ DamEngine/trunk/src/Deltares.DamEngine.Data/Geometry/GeometryLoop.cs (.../GeometryLoop.cs) (revision 6245) @@ -36,17 +36,17 @@ /// /// This property is not serialized. If you want to add point definitions, /// do so by adding/inserting a new element to . - public override List CalcPoints + public override List Points { get { //explicit use of protected field to prevent stack overflow due to recursive call - if (calcPoints.Count == 0) + if (points.Count == 0) { - calcPoints = PopulateLoopPointList(calcPoints); + points = PopulateLoopPointList(points); } - return calcPoints; + return points; } } @@ -113,7 +113,7 @@ /// Cannot determine if loop is clockwise if checked location forms a straight line with its neighboring vectors. public bool IsClockWise() { - Clockwise isClockWise = Routines2D.IsClockWise(CalcPoints); + Clockwise isClockWise = Routines2D.IsClockWise(Points); if (isClockWise == Clockwise.NotEnoughUniquePoints) { throw new NotEnoughUniquePointsException(); @@ -165,10 +165,10 @@ { GeometryPointString clonedGeometryPointString = base.Clone(); var clonedGeometryLoop = new GeometryLoop(); - clonedGeometryLoop.CalcPoints.AddRange(clonedGeometryPointString.CalcPoints); + clonedGeometryLoop.Points.AddRange(clonedGeometryPointString.Points); foreach (GeometryCurve curve in CurveList) { - clonedGeometryLoop.CurveList.Add(curve.Clone(clonedGeometryLoop.CalcPoints)); + clonedGeometryLoop.CurveList.Add(curve.Clone(clonedGeometryLoop.Points)); } return clonedGeometryLoop; @@ -229,11 +229,11 @@ private void RemoveDoubleClosingPointWhenNeeded() { - if (calcPoints.Count > 0) + if (points.Count > 0) { - if (calcPoints[0] == calcPoints[calcPoints.Count - 1]) + if (points[0] == points[points.Count - 1]) { - calcPoints.RemoveAt(calcPoints.Count - 1); + points.RemoveAt(points.Count - 1); } } }