// ----------------------------------------------------------------------- // // Triangle.NET code by Christian Woltering, http://triangle.codeplex.com/ // // ----------------------------------------------------------------------- namespace TriangleNet.IO { using System; using TriangleNet.Geometry; /// /// Simple triangle class for input. /// public class InputTriangle : ITriangle { internal int[] vertices; internal int label; internal double area; public InputTriangle(int p0, int p1, int p2) { vertices = new int[] { p0, p1, p2 }; } #region Public properties /// public int ID { get { return 0; } set { } } /// public int Label { get { return label; } set { label = value; } } /// public double Area { get { return area; } set { area = value; } } /// /// WARNING: not implemented. /// public Vertex GetVertex(int index) { throw new NotImplementedException(); } /// public int GetVertexID(int index) { return vertices[index]; } /// /// WARNING: not implemented. /// public ITriangle GetNeighbor(int index) { throw new NotImplementedException(); } /// /// WARNING: not implemented. /// public int GetNeighborID(int index) { throw new NotImplementedException(); } /// /// WARNING: not implemented. /// public ISegment GetSegment(int index) { throw new NotImplementedException(); } #endregion } }