Index: DamEngine/trunk/src/Deltares.DamEngine.Data/Geotechnics/SurfaceLine2Extensions.cs =================================================================== diff -u -r6087 -r6245 --- DamEngine/trunk/src/Deltares.DamEngine.Data/Geotechnics/SurfaceLine2Extensions.cs (.../SurfaceLine2Extensions.cs) (revision 6087) +++ DamEngine/trunk/src/Deltares.DamEngine.Data/Geotechnics/SurfaceLine2Extensions.cs (.../SurfaceLine2Extensions.cs) (revision 6245) @@ -223,7 +223,7 @@ if (addPoint) { - line.Geometry.CalcPoints.Add(point); + line.Geometry.Points.Add(point); line.AddCharacteristicPoint(point, type ?? CharacteristicPointType.None); } else if (type.HasValue && !movedPointToMatch) @@ -575,7 +575,7 @@ { // Notify change such that CharacteristicPointSet instances observing this // geometry can update if required. - line.Geometry.CalcPoints.Remove(geometryPoint); + line.Geometry.Points.Remove(geometryPoint); } } } @@ -595,11 +595,11 @@ { if (isInclusiveRange) { - return line.Geometry.CalcPoints.Where(cp => (cp.X >= startX || cp.X.AlmostEquals(startX, GeometryPoint.Precision)) && + return line.Geometry.Points.Where(cp => (cp.X >= startX || cp.X.AlmostEquals(startX, GeometryPoint.Precision)) && (cp.X <= endX || cp.X.AlmostEquals(endX, GeometryPoint.Precision))); } - return line.Geometry.CalcPoints.Where(cp => cp.X > startX && cp.X < endX); + return line.Geometry.Points.Where(cp => cp.X > startX && cp.X < endX); } #region Private methods @@ -634,7 +634,7 @@ { ThrowWhenLevelAboveDike(line, waterlevelLine.BeginPoint.Z); - List list = line.Geometry.CalcPoints.Where(point => + List list = line.Geometry.Points.Where(point => point.X >= line.CharacteristicPoints.GetPoint2D(CharacteristicPointType.SurfaceLevelOutside).X && point.X <= line.CharacteristicPoints.GetPoint2D(CharacteristicPointType.DikeTopAtRiver).X).ToList();