ArcGIS Pro 3.3 API Reference Guide
ArcGIS.Core.Data.Analyst3D Namespace / TinDataset Class / GetTriangleByIndex Method
The index of the triangle to get.
Example

In This Topic
    GetTriangleByIndex Method
    In This Topic
    Gets the triangle specified by the index. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    public TinTriangle GetTriangleByIndex( 
       int index
    )
    Public Function GetTriangleByIndex( _
       ByVal index As Integer _
    ) As TinTriangle

    Parameters

    index
    The index of the triangle to get.

    Return Value

    Exceptions
    ExceptionDescription
    This method or property must be called within the lambda passed to QueuedTask.Run
    The specified index is out of range.
    Remarks
    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 Index
    using (ArcGIS.Core.Data.Analyst3D.TinNode node = tinDataset.GetNodeByIndex(23))
    {
    
    }
    
    using (ArcGIS.Core.Data.Analyst3D.TinEdge edge = tinDataset.GetEdgeByIndex(45))
    {
    
    }
    using (ArcGIS.Core.Data.Analyst3D.TinTriangle triangle = tinDataset.GetTriangleByIndex(22))
    {
    
    }
    
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.2 or higher.
    See Also