ArcGIS Pro 3.2 API Reference Guide
ArcGIS.Core.Data.Analyst3D Namespace / TinDataset Class / GetTriangleByPoint Method
Point location. This will be projected into the spatial reference of the TIN dataset.
Example

In This Topic
    GetTriangleByPoint Method
    In This Topic
    Gets the triangle at the specified point. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    public TinTriangle GetTriangleByPoint( 
       MapPoint point
    )
    Public Function GetTriangleByPoint( _
       ByVal point As MapPoint _
    ) As TinTriangle

    Parameters

    point
    Point location. This will be projected into the spatial reference of the TIN dataset.

    Return Value

    Exceptions
    ExceptionDescription
    Point is null
    This method or property must be called within the lambda passed to QueuedTask.Run
    Remarks
    If the point is incident to a node or edge than the triangle returned is the first triangle found.

    To ensure maximum robustness, callers should explicitly dispose of the returned TinTriangle in either a using statement or a finally block.

    Example
    Access TIN Elements by MapPoint
    // "identify" the closest node, edge, triangle
    using (var nearestNode = tinDataset.GetNearestNode(mapPoint))
    {
    }
    
    using (var nearestEdge = tinDataset.GetNearestEdge(mapPoint))
    {
    }
    using (var triangle = tinDataset.GetTriangleByPoint(mapPoint))
    {
    
    }
    
    // get the set of natural neighbours 
    // (set of nodes that "mapPoint" would connect with to form triangles if it was added to the TIN)
    IReadOnlyList<ArcGIS.Core.Data.Analyst3D.TinNode> naturalNeighbors = tinDataset.GetNaturalNeighbors(mapPoint);
    
    // get the set of triangles whose circumscribed circle contains "mapPoint" 
    IReadOnlyList<ArcGIS.Core.Data.Analyst3D.TinTriangle> triangles = tinDataset.GetTriangleNeighborhood(mapPoint);
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.2 or higher.
    See Also