This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IT > ITinEdge Interface > ITinEdge.GetNeighbor Method (ArcObjects .NET 10.5 SDK) |
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(
ITinEdge** ppEdge
);
[C++]
Parameters ppEdge [out, retval]
ppEdge is a parameter of type ITinEdge
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.