Click or drag to resize

Instance 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
SystemObject
  Rhino.Render.CustomRenderMeshesInstance

Namespace:  Rhino.Render.CustomRenderMeshes
Assembly:  RhinoCommon (in RhinoCommon.dll)
Syntax
public class Instance : IDisposable

The Instance type exposes the following members.

Constructors
  NameDescription
Public methodInstance
Construct a new Instance object
Top
Properties
  NameDescription
Public propertyIsForcedMaterial
The material for this instance should override any display mode materials.
Public propertyIsRequestingPlugInDependent
If this instance will change depending on the requesting plug-in.
Public propertyIsViewDependent
If this instance will change depending on the view direction.
Public propertyMaterial
The material for this instance.
Public propertyMesh
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 propertyTransform
The transform for this instance. Transform the geometry by this to set its final location in world space.
Top
Methods
  NameDescription
Public methodDispose
Dispose method
Protected methodDispose(Boolean)
Dispose method.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Finalizer to ensure correctly implemented dispose pattern.
(Overrides ObjectFinalize.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also