Instance
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
Instance
Construct a new Instance object
Properties
Name
Description
Public Property
IsForcedMaterial
The material for this instance should override any display mode materials.
Public Property
IsRequestingPlugInDependent
If this instance will change depending on the requesting plug-in.
Public Property
IsViewDependent
If this instance will change depending on the view direction.
Public Property
Material
The material for this instance.
Public Property
Mesh
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
Transform
The transform for this instance. Transform the geometry by this to set its final location in world space.
Methods
Name
Description
Public Method
Dispose.
Dispose method
Protected Method
Dispose(Boolean)
Dispose method.
Public Method
Equals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected Method
Finalize
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.)