Index: Ringtoets/Piping/src/Ringtoets.Piping.Data/RingtoetsPipingSurfaceLine.cs =================================================================== diff -u -r1abce3b7d9611e826388ff49f3faf8cb1040f80c -re5e9b60b2f5badab0a2b54a4c8542baf124751ce --- Ringtoets/Piping/src/Ringtoets.Piping.Data/RingtoetsPipingSurfaceLine.cs (.../RingtoetsPipingSurfaceLine.cs) (revision 1abce3b7d9611e826388ff49f3faf8cb1040f80c) +++ Ringtoets/Piping/src/Ringtoets.Piping.Data/RingtoetsPipingSurfaceLine.cs (.../RingtoetsPipingSurfaceLine.cs) (revision e5e9b60b2f5badab0a2b54a4c8542baf124751ce) @@ -96,42 +96,14 @@ public Point3D DitchDikeSide { get; private set; } /// - /// Gets or sets the L-coördinate of the entry point. + /// Gets the point which is the entry point for piping. /// - /// is not in range of the LZ-projected . - /// is empty. - public double EntryPointL - { - get - { - return entryPointL; - } - set - { - ValidateHasPoints(); - ValidateInRange(value, ProjectGeometryToLZ().ToArray(), Resources.RingtoetsPipingSurfaceLine_EntryPointL_Cannot_set_entry_point_at_L_0); - entryPointL = value; - } - } + public Point3D EntryPoint { get; private set; } /// - /// Gets or sets the L-coördinate of the exit point. + /// Gets the point which is the exit point for piping. /// - /// is not in range of the LZ-projected . - /// is empty. - public double ExitPointL - { - get - { - return exitPointL; - } - set - { - ValidateHasPoints(); - ValidateInRange(value, ProjectGeometryToLZ().ToArray(), Resources.RingtoetsPipingSurfaceLine_ExitPointL_Cannot_set_exit_point_at_L_0); - exitPointL = value; - } - } + public Point3D ExitPoint { get; private set; } /// /// Sets the geometry of the surfaceline. @@ -206,6 +178,30 @@ } /// + /// Sets the at the given point. + /// + /// The location as a which to set as the . + /// Thrown when doesn't contain a at + /// . + /// is null. + public void SetEntryPointAt(Point3D point) + { + EntryPoint = GetPointFromGeometry(point); + } + + /// + /// Sets the at the given point. + /// + /// The location as a which to set as the . + /// Thrown when doesn't contain a at + /// . + /// is null. + public void SetExitPointAt(Point3D point) + { + ExitPoint = GetPointFromGeometry(point); + } + + /// /// Finds a point from which is at the same position as . /// /// The location of a point from . @@ -217,7 +213,7 @@ { if (point == null) { - throw new ArgumentNullException("Cannot find a point in geometry using a null point."); + throw new ArgumentNullException("point", "Cannot find a point in geometry using a null point."); } var pointFromGeometry = Points.FirstOrDefault(p => p.Equals(point)); if (pointFromGeometry == null)