ArcGIS Pro 3.3 API Reference Guide
ArcGIS.Core.Data.Analyst3D Namespace / TinEdge Class / GeNeighbor Method
Example

In This Topic
    GeNeighbor Method
    In This Topic
    Gets the corresponding edge of the triangle opposite to this TIN edge. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    public TinEdge GeNeighbor()
    Public Function GeNeighbor() As TinEdge

    Return Value

    Exceptions
    ExceptionDescription
    This method or property must be called within the lambda passed to QueuedTask.Run
    Remarks
    A triangle is comprised of three edges. They are ordered clockwise. 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 null when the edge is on the absolute boundary of the triangulation.
    Example
    TIN Edges
    // nodes of the edge
    var nodes = edge.Nodes;
    
    // edge geometry
    var polyline = edge.ToPolyline();
    // edge length
    var length = edge.Length;
    // is the edge "inside"
    var isInsideEdge = edge.IsInsideDataArea;
    // edge type - regular/hard/soft
    var edgeType = edge.EdgeType;
    
    // get next (clockwise) edge in the triangle
    var nextEdge = edge.GetNextEdgeInTriangle();
    // get previous (anti-clockwise) edge in the triangle
    var prevEdge = edge.GetPreviousEdgeInTriangle();
    
    // get opposite edge
    var oppEdge = edge.GeNeighbor();
    
    // get left triangle
    var leftTriangle = edge.LeftTriangle;
    // get right triangle
    var rightTriangle = edge.RightTriangle;
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.2 or higher.
    See Also