SimpleArrayPoint3d

ON_SimpleArray<ON_3dPoint>, ON_3dPointArray, ON_PolyLine all have the same size This class wraps all of these C++ versions. If you are not writing C++ code then this class is not for you.

Constructors

SimpleArrayPoint3d

#Since v5.0
Initializes a new empty SimpleArrayPoint3d instance.
public SimpleArrayPoint3d()

SimpleArrayPoint3d

#Since v7.18
Initializes a new SimpleArrayPoint3d instance from a set of points
public SimpleArrayPoint3d()

Finalizer

~SimpleArrayPoint3d

#
Passively reclaims unmanaged resources when the class user did not explicitly call Dispose().
~SimpleArrayPoint3d()

Properties

Count

#Since v5.0
Gets the amount of points in this array.
public int Count { get; }

Methods

Add

#Since v8.0
Adds a point to the list
public void Add()

ConstPointer

#Since v5.0
Gets the constant (immutable) pointer of this array.
public nint ConstPointer()
The constant pointer.

Dispose

#Since v5.0
Actively reclaims unmanaged resources that this instance uses.
public void Dispose()

Dispose

#
For derived class implementers.

This method is called with argument true when class user calls Dispose(), while with argument false when the Garbage Collector invokes the finalizer, or Finalize() method.

You must reclaim all used unmanaged resources in both cases, and can use this chance to call Dispose on disposable fields if the argument is true.

Also, you must call the base virtual method within your overriding method.

protected virtual void Dispose(
disposing
true if the call comes from the Dispose() method; false if it comes from the Garbage Collector finalizer.
)

NonConstPointer

#Since v5.0
Gets the non-constant pointer (for modification) of this array.
public nint NonConstPointer()
The non-constant pointer.

ToArray

#Since v5.0
Copies the unmanaged array to a managed counterpart.
public Point3d[] ToArray()
The managed array.