This document is archived and information here might be outdated.  Recommended version.


IGeometryBridge.AddWKSPointZs Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (Geometry)  

IGeometryBridge.AddWKSPointZs Method

Adds vertices/points to this Path, Ring, Polyline, Polygon, Multipoint, Triangles, TriangleFan, TriangleStrip, or MultiPatch.

[Visual Basic .NET]
Public Sub AddWKSPointZs ( _
    ByVal pPointCollection As IPointCollection4, _
    ByRef pointStructures As WKSPointZ[] _
)
[C#]
public void AddWKSPointZs (
    IPointCollection4 pPointCollection,
    ref WKSPointZ[] pointStructures
);
[C++]
HRESULT AddWKSPointZs(
  IPointCollection4* pPointCollection,
  Array* pointStructures
);
[C++]

Parameters pPointCollection [in]
pPointCollection is a parameter of type IPointCollection4 pointStructures [in] pointStructures is a parameter of type Array

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Description

All development languages compatible version of IPointCollection4::AddWKSPointsZs .

[C#]

    public void AddWKSPointZs()
    {
        int length=10;
        WKSPointZ[] pointArray=new WKSPointZ[length];
        for (int i=0; i < length; i++)
        {
            pointArray[i]=new WKSPointZ();
            pointArray[i].X=i * 10;
            pointArray[i].Y=i * 10;
            pointArray[i].Z=i * 10;
        }
        IPointCollection4 pointCollection=new MultipointClass();
        // Make pointcollection ZAware
        IZAware zAware=(IZAware)pointCollection;
        zAware.ZAware=true;

        //adds WKSpointZs to pointCollection
        IGeometryBridge geometryBridge=new GeometryEnvironmentClass();
        geometryBridge.AddWKSPointZs(pointCollection, ref pointArray);

        System.Windows.Forms.MessageBox.Show(pointCollection.PointCount + " Points added");
    }

See Also

IGeometryBridge Interface