ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Core.Data.Analyst3D Namespace / TinTriangle Class / GetPointsBetweenZs Method
The minimum Z value.
The maximum Z value.
Example

In This Topic
    GetPointsBetweenZs Method
    In This Topic
    Gets the set of coordinates for this TIN triangle that falls within the specified Z values. Use these coordinates to build a 3D polygonal definition for the area of the triangle that falls within the specified Z values. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    public IReadOnlyList<Coordinate3D> GetPointsBetweenZs( 
       double minZ,
       double maxZ
    )
    Public Function GetPointsBetweenZs( _
       ByVal minZ As Double, _
       ByVal maxZ As Double _
    ) As IReadOnlyList(Of Coordinate3D)

    Parameters

    minZ
    The minimum Z value.
    maxZ
    The maximum Z value.

    Return Value

    Exceptions
    ExceptionDescription
    minZ and maxZ cannot be NaN values.
    This method or property must be called within the lambda passed to QueuedTask.Run
    Example
    TIN Triangles
    // nodes, edges of the triangle
    var triNnodes = triangle.Nodes;
    var triEdges = triangle.Edges;
    
    // triangle geometry
    var polygon = triangle.ToPolygon();
    // triangle length
    var triLength = triangle.Length;
    // triangle area 
    var triArea = triangle.Area;
    // is the triangle "inside"
    var isInsideTriangle = triangle.IsInsideDataArea;
    
    // triangle aspect and slope  (radians)
    var aspect = triangle.Aspect;
    var slope = triangle.Slope;
    
    // get centroid
    var centroid = triangle.GetCentroid();
    
    // get normal
    var normal = triangle.GetNormal();
    
    // get adjacent triangles
    var adjTriangles = triangle.GetAdjacentTriangles();
    
    // get area of triangle that falls between the z values
    double minZ = 1.0;
    double maxZ = 3.0;
    IReadOnlyList<Coordinate3D> coords = triangle.GetPointsBetweenZs(minZ, maxZ);
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.2 or higher.
    See Also