Added GetSegment method to ITriangle interface
git-svn-id: https://triangle.svn.codeplex.com/svn@71151 0e2699bc-83d4-4a8f-98e7-55e24ab8c7a5
This commit is contained in:
@@ -146,12 +146,22 @@ namespace TriangleNet.Data
|
||||
/// Gets a triangles' neighbor.
|
||||
/// </summary>
|
||||
/// <param name="index">The neighbor index (0, 1 or 2).</param>
|
||||
/// <returns>The triangles' neigbbor.</returns>
|
||||
/// <returns>The neigbbor opposite of vertex with given index.</returns>
|
||||
public ITriangle GetNeighbor(int index)
|
||||
{
|
||||
return neighbors[index].triangle == Mesh.dummytri ? null : neighbors[index].triangle;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets a triangles segment.
|
||||
/// </summary>
|
||||
/// <param name="index">The vertex index (0, 1 or 2).</param>
|
||||
/// <returns>The segment opposite of vertex with given index.</returns>
|
||||
public Segment GetSegment(int index)
|
||||
{
|
||||
return subsegs[index].seg == Mesh.dummysub ? null : subsegs[index].seg;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the triangle area constraint.
|
||||
/// </summary>
|
||||
|
||||
@@ -63,10 +63,17 @@ namespace TriangleNet.Geometry
|
||||
/// <summary>
|
||||
/// Gets a triangles neighbor.
|
||||
/// </summary>
|
||||
/// <param name="index">The neighbor index (0, 1 or 2).</param>
|
||||
/// <returns>The triangles' neigbbor.</returns>
|
||||
/// <param name="index">The vertex index (0, 1 or 2).</param>
|
||||
/// <returns>The neigbbor opposite of vertex with given index.</returns>
|
||||
ITriangle GetNeighbor(int index);
|
||||
|
||||
/// <summary>
|
||||
/// Gets a triangles segment.
|
||||
/// </summary>
|
||||
/// <param name="index">The vertex index (0, 1 or 2).</param>
|
||||
/// <returns>The segment opposite of vertex with given index.</returns>
|
||||
Segment GetSegment(int index);
|
||||
|
||||
/// <summary>
|
||||
/// Triangle area constraint.
|
||||
/// </summary>
|
||||
|
||||
@@ -92,6 +92,11 @@ namespace TriangleNet.IO
|
||||
return null;
|
||||
}
|
||||
|
||||
public Segment GetSegment(int index)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the triangle area constraint.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user