# StdVectorOfSharedPtrToMesh class

Namespace: [Rhino.Runtime.InteropWrappers](https://developer.rhino3d.com/api/rhinocommon/namespace/rhino.runtime.interopwrappers.md) · Assembly: [RhinoCommon](https://developer.rhino3d.com/api/rhinocommon/assembly/rhinocommon.md)

```cs
public class StdVectorOfSharedPtrToMesh : IDisposable
```

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](https://developer.rhino3d.com/api/rhinocommon/type/rhino.runtime.interopwrappers.stdvectorofsharedptrtomesh/ctor.md): Initializes a new [StdVectorOfSharedPtrToMesh](https://developer.rhino3d.com/api/rhinocommon/type/rhino.runtime.interopwrappers.stdvectorofsharedptrtomesh.md) instance.

## Finalizer

- [~StdVectorOfSharedPtrToMesh](https://developer.rhino3d.com/api/rhinocommon/type/rhino.runtime.interopwrappers.stdvectorofsharedptrtomesh/finalize.md): Passively reclaims unmanaged resources when the class user did not explicitly call Dispose().

## Properties

- [Count](https://developer.rhino3d.com/api/rhinocommon/type/rhino.runtime.interopwrappers.stdvectorofsharedptrtomesh/count.md): Gets the amount of meshes in this array.

## Methods

- [Add](https://developer.rhino3d.com/api/rhinocommon/type/rhino.runtime.interopwrappers.stdvectorofsharedptrtomesh/add.md): Adds a mesh to the list.
- [ConstPointer](https://developer.rhino3d.com/api/rhinocommon/type/rhino.runtime.interopwrappers.stdvectorofsharedptrtomesh/constpointer.md): Gets the constant (immutable) pointer of this array.
- [Dispose](https://developer.rhino3d.com/api/rhinocommon/type/rhino.runtime.interopwrappers.stdvectorofsharedptrtomesh/dispose.md): (2 overloads) Actively reclaims unmanaged resources that this instance uses.
- [NonConstPointer](https://developer.rhino3d.com/api/rhinocommon/type/rhino.runtime.interopwrappers.stdvectorofsharedptrtomesh/nonconstpointer.md): Gets the non-constant pointer (for modification) of this array.
- [ToNonConstArray](https://developer.rhino3d.com/api/rhinocommon/type/rhino.runtime.interopwrappers.stdvectorofsharedptrtomesh/tononconstarray.md): Copies the unmanaged array to a managed counterpart.
