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

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

    Return Value

    The total 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
    Remarks
    When looping through the triangles, the loop starts at index = 1.
    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 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.2 or higher.
    See Also