ArcGIS Pro 3.2 API Reference Guide
ArcGIS.Core.Geometry Namespace / MultipatchBuilderEx Class / InsertPoints Method
The patch index. Must be in the range [0, Patches.Count - 1] inclusive.
The index before the location where the point will be inserted. Must be int the range [0, Patch.Coords] inclusive. If the index is negative, the points will be added to the end of the Patch.Coords list.
The MapPoint collection to add. No point in the collection can be empty or null.

In This Topic
    InsertPoints Method (MultipatchBuilderEx)
    In This Topic
    A convenience method to insert a collection of points into the specified Patch.
    Syntax
    Public Sub InsertPoints( _
       ByVal patchIndex As Integer, _
       ByVal beforePointIndex As Integer, _
       ByVal points As IEnumerable(Of MapPoint) _
    ) 

    Parameters

    patchIndex
    The patch index. Must be in the range [0, Patches.Count - 1] inclusive.
    beforePointIndex
    The index before the location where the point will be inserted. Must be int the range [0, Patch.Coords] inclusive. If the index is negative, the points will be added to the end of the Patch.Coords list.
    points
    The MapPoint collection to add. No point in the collection can be empty or null.
    Exceptions
    ExceptionDescription
    The patch point count is less than beforePointIndex
    The points is null.
    Remarks
    The elements are inserted into the Patch.Coords list. If a point property HasM is set to true and the builder's HasM is true, then elements are inserted into the Patch.Ms. Same is true for the Patch.IDs. That is, if any point is missing any of the attributes (Z, M, or ID), default values are used. If any point has an attribute that is missing in the builder, the attribute is ignored. If the patch has texture coordinates or normals, then a default value is set. The default value is (0, 0) for texture coordinates and (0, 0, 1) for normals.
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also