// ----------------------------------------------------------------------- // // Triangle.NET code by Christian Woltering, http://triangle.codeplex.com/ // // ----------------------------------------------------------------------- namespace UnityEngine.U2D.Animation.TriangleNet .Geometry { using Animation.TriangleNet.Topology; /// /// Triangle interface. /// internal interface ITriangle { /// /// Gets or sets the triangle ID. /// int ID { get; set; } /// /// Gets or sets a general-purpose label. /// /// /// This is used for region information. /// int Label { get; set; } /// /// Gets or sets the triangle area constraint. /// double Area { get; set; } /// /// Gets the vertex at given index. /// /// The local index (0, 1 or 2). /// The vertex. Vertex GetVertex(int index); /// /// Gets the ID of the vertex at given index. /// /// The local index (0, 1 or 2). /// The vertex ID. int GetVertexID(int index); /// /// Gets the neighbor triangle at given index. /// /// The local index (0, 1 or 2). /// The neighbor triangle. ITriangle GetNeighbor(int index); /// /// Gets the ID of the neighbor triangle at given index. /// /// The local index (0, 1 or 2). /// The neighbor triangle ID. int GetNeighborID(int index); /// /// Gets the segment at given index. /// /// The local index (0, 1 or 2). /// The segment. ISegment GetSegment(int index); } }