ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / TinLayer Class / InterpolatePolygonToMultipatch Method
The polygon to be interpolated.
The maximum number of vertices allowed in any triangle strip used in constructing the multipatch. Must be 3 or larger. The recommended range is between 128 and 2048. A reasonable default value is 1024.
Example

In This Topic
    InterpolatePolygonToMultipatch Method (TinLayer)
    In This Topic
    Creates a surface conforming multipatch by draping a polygon over the surface. This method requires a 3D Analyst license. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    Public Function InterpolatePolygonToMultipatch( _
       ByVal polygon As Polygon, _
       ByVal maximumStripSize As Integer _
    ) As Multipatch
    public Multipatch InterpolatePolygonToMultipatch( 
       Polygon polygon,
       int maximumStripSize
    )

    Parameters

    polygon
    The polygon to be interpolated.
    maximumStripSize
    The maximum number of vertices allowed in any triangle strip used in constructing the multipatch. Must be 3 or larger. The recommended range is between 128 and 2048. A reasonable default value is 1024.

    Return Value

    A ArcGIS.Core.Geometry.Multipatch with surface elevation z values.
    Exceptions
    ExceptionDescription
    polygon cannot be null.
    polygon cannot be empty.
    maximumStripSize must be 3 or larger.
    An exception occurred within the InterpolatePolygonToMultipatch calculation.
    A 3D Analyst license is required.
    This method or property must be called within the lambda passed to QueuedTask.Run.
    Remarks
    The polygon has its boundary profiled along the surface. Heights are obtained using linear interpolation by sampling at each input vertex and wherever the boundary line intersects surface triangle edges and nodes. This natural densification captures the full definition of the linear surface using a minimal number of samples. Then, all nodes that fall within the polygon are extracted. The nodes are re-triangulated in a new memory-based TIN, and the 3D polygon boundary is enforced as a clip polygon. The triangles of this new TIN are then extracted in a series of strips that are used to define a multipatch-based geomtry.
    Example
    Interpolate Polygon To Multipatch
    {
      // Note: Needs QueuedTask to run
      // Note: Needs 3d Analyst license to run
      {
        var multipatch = tinLayer.InterpolatePolygonToMultipatch(polygon, 1024);
        if (multipatch != null)
        {
          // process the output
        }
      }
    }
    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.7 or higher.
    See Also