ArcGIS Pro 3.2 API Reference Guide
ArcGIS.Core.Data.Analyst3D Namespace / TinDataset Class / GetTriangleCount Method
Example

In This Topic
    GetTriangleCount Method
    In This Topic
    Gets the number of triangles in this TIN. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    public int GetTriangleCount()
    Public Function GetTriangleCount() As Integer

    Return Value

    The number of triangles in this TIN.
    Exceptions
    ExceptionDescription
    A geodatabase-related exception has occurred.
    This method or property must be called within the lambda passed to QueuedTask.Run
    Example
    Element Counts
    var nodeCount = tinDataset.GetNodeCount();
    var outsideNodeCount = tinDataset.GetOutsideNodeCount();
    var edgeCount = tinDataset.GetEdgeCount();
    var outsideEdgecount = tinDataset.GetOutsideEdgeCount();
    var triCount = tinDataset.GetTriangleCount();
    var outsideTriCount = tinDataset.GetOutsideTriangleCount();
    
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.2 or higher.
    See Also