ArcGIS Pro 3.6 API Reference Guide
ArcGIS.Core.Data.Analyst3D Namespace / TinEditor Class / AddMassPoints Method
The points to add.
The tag value for the new nodes. A value of 0 will result in no tag assignment.
The z-value for the new nodes. If you want to use the z-values from the points, call AddMassPointsZ(IEnumerable<MapPoint>,Int32,SpatialReference).
The spatial reference of the points. If it is the same as the TIN spatial reference, you can pass null.
Example

In This Topic
    AddMassPoints Method
    In This Topic
    Adds points as nodes to the TIN. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    Public Sub AddMassPoints( _
       ByVal points As IEnumerable(Of MapPoint), _
       ByVal tagValue As Integer, _
       ByVal z As Double, _
       Optional ByVal spatialReference As SpatialReference _
    ) 

    Parameters

    points
    The points to add.
    tagValue
    The tag value for the new nodes. A value of 0 will result in no tag assignment.
    z
    The z-value for the new nodes. If you want to use the z-values from the points, call AddMassPointsZ(IEnumerable<MapPoint>,Int32,SpatialReference).
    spatialReference
    The spatial reference of the points. If it is the same as the TIN spatial reference, you can pass null.
    Exceptions
    ExceptionDescription
    This method must be called on the MCT. Use QueuedTask.Run.
    The points parameter is null.
    The editor is not in edit mode.
    The points are all null or empty.
    Example
    Add mass points
    // Add points with no tag value and height = 17.
    // The points have the same spatial reference as the tin editor, so there is no need to provide it. 
    tinEditor.AddMassPoints(points, 0, 17);
    
    // Add coordinates as nodes with tag value = 42. The height will come from the z-values of the coordinates.
    tinEditor.AddMassPointsZ(coordinate3Ds, 42);
    
    // Add z-aware points with tag value = 21. The height will come from the z-values of the points.
    // The points are in a different spatial reference than the tin editor, so we provide the spatial 
    // reference of the points. The points will be projected to the spatial reference of the tin editor.
    tinEditor.AddMassPointsZ(pointsZ, 21, SpatialReferenceBuilder.CreateSpatialReference(54004));
    
    Add mass points
    // Add points with no tag value and height = 17.
    // The points have the same spatial reference as the tin editor, so there is no need to provide it. 
    tinEditor.AddMassPoints(points, 0, 17);
    
    // Add coordinates as nodes with tag value = 42. The height will come from the z-values of the coordinates.
    tinEditor.AddMassPointsZ(coordinate3Ds, 42);
    
    // Add z-aware points with tag value = 21. The height will come from the z-values of the points.
    // The points are in a different spatial reference than the tin editor, so we provide the spatial 
    // reference of the points. The points will be projected to the spatial reference of the tin editor.
    tinEditor.AddMassPointsZ(pointsZ, 21, SpatialReferenceBuilder.CreateSpatialReference(54004));
    
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.5 or higher.
    See Also