using System.ComponentModel; using System.Xml.Serialization; using Deltares.Geometry; namespace Deltares.Stability { public class SlipPlane : GeometryPointString, IHasGeometryPointStringAttachedPoints { private StabilityModel stabilityModel = null; public SlipPlane() {} [Browsable(false)] [XmlIgnore] public StabilityModel StabilityModel { get { return stabilityModel; } set { stabilityModel = value; } } public GeometryPoint[] GetGeometryPointStringAttachedPoints() { if (Points.Count == 0) { return new GeometryPoint[0]; } else if (Points.Count == 1) { return new[] { Points[0] }; } else { return new[] { Points[0], Points[Points.Count - 1] }; } } } }