# RenderMeshes class

Namespace: [Rhino.Render.CustomRenderMeshes](https://developer.rhino3d.com/api/rhinocommon/namespace/rhino.render.customrendermeshes.md) · Assembly: [RhinoCommon](https://developer.rhino3d.com/api/rhinocommon/assembly/rhinocommon.md)

```cs
public class RenderMeshes : IDisposable, IEnumerable<Instance>
```

RenderMeshes is a collection of geometry instances for a given ObjectId typically returned by the Custom Render primitive system. As each set of primitives is returned by the RenderMeshProviders in turn, the running hash is updated with new information about the primitive modifications that have been made along the way.

## Constructors

- [RenderMeshes](https://developer.rhino3d.com/api/rhinocommon/type/rhino.render.customrendermeshes.rendermeshes/ctor.md): (2 overloads) Create a new render primitives collection.

## Finalizer

- [~RenderMeshes](https://developer.rhino3d.com/api/rhinocommon/type/rhino.render.customrendermeshes.rendermeshes/finalize.md): Finalizer for this collection

## Properties

- [Document](https://developer.rhino3d.com/api/rhinocommon/type/rhino.render.customrendermeshes.rendermeshes/document.md): The document with which this IRenderMeshes object is associated.
- [Hash](https://developer.rhino3d.com/api/rhinocommon/type/rhino.render.customrendermeshes.rendermeshes/hash.md): The running hash for these render meshes.
- [InstanceCount](https://developer.rhino3d.com/api/rhinocommon/type/rhino.render.customrendermeshes.rendermeshes/instancecount.md): The number of instance objects in this collection.
- [ObjectId](https://developer.rhino3d.com/api/rhinocommon/type/rhino.render.customrendermeshes.rendermeshes/objectid.md): The ObjectId with which this IRenderMeshes object is associated.

## Methods

- [AddInstance](https://developer.rhino3d.com/api/rhinocommon/type/rhino.render.customrendermeshes.rendermeshes/addinstance.md): Adds a new instance to the render primitives collection.
- [Dispose](https://developer.rhino3d.com/api/rhinocommon/type/rhino.render.customrendermeshes.rendermeshes/dispose.md): (2 overloads) Dispose this collection
- [GetEnumerator](https://developer.rhino3d.com/api/rhinocommon/type/rhino.render.customrendermeshes.rendermeshes/getenumerator.md): Return an object to iterator over the instances in the collection
- [GetHashCode](https://developer.rhino3d.com/api/rhinocommon/type/rhino.render.customrendermeshes.rendermeshes/gethashcode.md): Overrides default hash code function - just returns Hash
- [IEnumerable.GetEnumerator](https://developer.rhino3d.com/api/rhinocommon/type/rhino.render.customrendermeshes.rendermeshes/system-collections-ienumerable-getenumerator.md)
