Added ISegment interface,

Added access to segments adjoining triangles

git-svn-id: https://triangle.svn.codeplex.com/svn@71933 0e2699bc-83d4-4a8f-98e7-55e24ab8c7a5
This commit is contained in:
SND\wo80_cp
2013-02-17 18:54:08 +00:00
parent b2d6b2c729
commit 5814e894d4
7 changed files with 64 additions and 35 deletions
@@ -0,0 +1,47 @@
// -----------------------------------------------------------------------
// <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
}
}