This document is archived and information here might be outdated.  Recommended version.


ITinEdge.GetNeighbor Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (GeoDatabase)  

ITinEdge.GetNeighbor Method

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

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Description

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.

See Also

ITinEdge Interface