StdVectorOfSharedPtrToMesh

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

StdVectorOfSharedPtrToMesh

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

Finalizer

~StdVectorOfSharedPtrToMesh

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

Properties

Count

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

Methods

Add

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

ConstPointer

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

Dispose

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

Dispose

#
protected virtual void Dispose(bool disposing)
disposing (bool)

NonConstPointer

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

ToNonConstArray

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