This document is archived and information here might be outdated. Recommended version. |
Returns the corresponding edge of the triangle opposite to the specified edge.
[Visual Basic .NET] Public Function GetNeighbor ( _ ) As ITinEdge
[C#] public ITinEdge GetNeighbor ( );
[C++]
HRESULT GetNeighbor(
void
);
A triangle is comprised of three edges. They are ordered clockwise one after another. So, the RightTriangle of an edge is the triangle the edge belongs to. An edge's neighboring edge is the edge of the LeftTriangle that shares the same nodes (although from and to are reversed).
GetNeighbor will return Nothing (a null pointer) when the edge is on the absolute boundary of the triangulation.