ArcGIS Pro 3.3 API Reference Guide
ArcGIS.Core.Geometry Namespace / MultipatchBuilderEx Class / InsertPoint 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. A negative value means that the point coordinates will be added to the end of the corresponding list in the patch. Otherwise, the value must be in the range [0, Patch.Coords] inclusive.
The MapPoint to insert. Point cannot be empty or null.

In This Topic
    InsertPoint Method (MultipatchBuilderEx)
    In This Topic
    A convenience method to insert a point in the specified Patch.
    Syntax
    public void InsertPoint( 
       int patchIndex,
       int beforePointIndex,
       MapPoint point
    )
    Public Sub InsertPoint( _
       ByVal patchIndex As Integer, _
       ByVal beforePointIndex As Integer, _
       ByVal point As 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. A negative value means that the point coordinates will be added to the end of the corresponding list in the patch. Otherwise, the value must be in the range [0, Patch.Coords] inclusive.
    point
    The MapPoint to insert. Point cannot be empty or null.
    Exceptions
    ExceptionDescription
    The patch point count is less than beforePointIndex
    The point is null or empty.
    Remarks
    The xy-coordinates of the point are inserted in the Patch.Coords list. If the point property HasZ is true, then the Z-value of the point is inserted in the Patch.Coords list. Otherwise, a default Z-value is inserted in the Patch.Coords list. If the point property HasM is set to true and this builder property HasM is true, then the M-value of the point is inserted in the Patch.Ms list. Same is true for the Patch.IDs. If the point is missing any of the attributes (Z, M, or ID) that are present in this builder, a default value is used. The default value for Z is zero, M is NaN, and ID is zero. If a 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