// ----------------------------------------------------------------------- // // Triangle.NET code by Christian Woltering, http://triangle.codeplex.com/ // // ----------------------------------------------------------------------- namespace TriangleNet.Geometry { using System; using System.Collections.Generic; using System.Linq; using System.Text; using TriangleNet.Data; /// /// Represents a straight line segment in 2D space. /// public class Edge : IEdge { /// /// Gets the first endpoints index. /// public int P0 { get; private set; } /// /// Gets the second endpoints index. /// public int P1 { get; private set; } /// /// Gets the segments boundary mark. /// public int Boundary { get; private set; } /// /// Initializes a new instance of the class. /// public Edge(int p0, int p1) : this(p0, p1, 0) { } /// /// Initializes a new instance of the class. /// public Edge(int p0, int p1, int boundary) { this.P0 = p0; this.P1 = p1; this.Boundary = boundary; } } }