SimpleArrayMeshPointer

Represents a wrapper to an unmanaged array of mesh pointers.

Wrapper for a C++ ON_SimpleArray of ON_Mesh* or constant ON_Mesh*. If you are not writing C++ code then this class is not for you.

Constructors

SimpleArrayMeshPointer

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

Finalizer

~SimpleArrayMeshPointer

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

Properties

Count

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

Methods

Add

#Since v5.0
Adds a mesh to the list.
public void Add(
Mesh
mesh,
A mesh to add.
asConst
Whether this mesh should be treated as non-modifiable.
)

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

#
protected virtual void Dispose(
disposing
)

NonConstPointer

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

ToNonConstArray

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