5814e894d4
Added access to segments adjoining triangles git-svn-id: https://triangle.svn.codeplex.com/svn@71933 0e2699bc-83d4-4a8f-98e7-55e24ab8c7a5
48 lines
1.3 KiB
C#
48 lines
1.3 KiB
C#
// -----------------------------------------------------------------------
|
|
// <copyright file="Segment.cs" company="">
|
|
// Triangle.NET code by Christian Woltering, http://triangle.codeplex.com/
|
|
// </copyright>
|
|
// -----------------------------------------------------------------------
|
|
|
|
namespace TriangleNet.Geometry
|
|
{
|
|
using TriangleNet.Data;
|
|
|
|
/// <summary>
|
|
/// Interface for segment geometry.
|
|
/// </summary>
|
|
public interface ISegment
|
|
{
|
|
#region Public properties
|
|
|
|
/// <summary>
|
|
/// Gets the first endpoints vertex id.
|
|
/// </summary>
|
|
int P0 { get; }
|
|
|
|
/// <summary>
|
|
/// Gets the seconds endpoints vertex id.
|
|
/// </summary>
|
|
int P1 { get; }
|
|
|
|
/// <summary>
|
|
/// Gets the segment boundary mark.
|
|
/// </summary>
|
|
int Boundary { get; }
|
|
|
|
/// <summary>
|
|
/// Gets the segments endpoint.
|
|
/// </summary>
|
|
/// <param name="index">The vertex index (0 or 1).</param>
|
|
Vertex GetVertex(int index);
|
|
|
|
/// <summary>
|
|
/// Gets an adjoining triangle.
|
|
/// </summary>
|
|
/// <param name="index">The triangle index (0 or 1).</param>
|
|
ITriangle GetTriangle(int index);
|
|
|
|
#endregion
|
|
}
|
|
}
|