Skip to content

Instance

Public Class

The core of the custom render primitive delivery system - and instance defines a single mesh. Each instance has a shared mesh and a transform, along with a material, mapping channels (at the mesh and instance level).

Inheritance Hierarchy

System.Object
Rhino.Render.CustomRenderMeshes.Instance

Namespace: Rhino.Render.CustomRenderMeshes

Assembly: RhinoCommon (in RhinoCommon.dll)

Syntax

public class Instance : IDisposable

The Instance type exposes the following members.

Constructors

Name

Description


Public Method

Construct a new Instance object


Properties

Name

Description


Public Property

The material for this instance should override any display mode materials.


Public Property

If this instance will change depending on the requesting plug-in.


Public Property

If this instance will change depending on the view direction.


Public Property

The material for this instance.


Public Property

Returns the mesh associated with this geometry. Note that this function will always return a mesh even if the type is not a mesh…so you can always call this function without checking the type to give you the mesh. It’s more efficient to use the primitive directly of course…but if you don’t support it…


Public Property

The transform for this instance. Transform the geometry by this to set its final location in world space.


Methods

Name

Description


Public Method

Dispose method


Protected Method

Dispose method.


Public Method

Equals

Determines whether the specified object is equal to the current object.

(Inherited from Object.)


Protected Method

Finalizer to ensure correctly implemented dispose pattern.

(Overrides Object.Finalize..)


Public Method

GetHashCode

Serves as the default hash function.

(Inherited from Object.)


Public Method

GetType

Gets the Type of the current instance.

(Inherited from Object.)


Protected Method

MemberwiseClone

Creates a shallow copy of the current Object.

(Inherited from Object.)


Public Method

ToString

Returns a string that represents the current object.

(Inherited from Object.)