Instance

References
public class Instance : IDisposable
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).

Constructors

Instance

#Since v8.0
public Instance()
Construct a new Instance object

Finalizer

~Instance

#
~Instance()
Finalizer to ensure correctly implemented dispose pattern.

Properties

IsForcedMaterial

#Since v8.11
public bool IsForcedMaterial { get; set; }
The material for this instance should override any display mode materials.

IsRequestingPlugInDependent

#Since v8.0
public bool IsRequestingPlugInDependent { get; set; }
If this instance will change depending on the requesting plug-in.

IsViewDependent

#Since v8.0
public bool IsViewDependent { get; set; }
If this instance will change depending on the view direction.

Material

#Since v8.0
public RenderMaterial Material { get; set; }
The material for this instance.

Mesh

#Since v8.0
public Mesh Mesh { get; set; }
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...

Transform

#Since v8.0
public Transform Transform { get; set; }
The transform for this instance. Transform the geometry by this to set its final location in world space.

Methods

Dispose

#Since v8.0
public void Dispose()
Dispose method

Dispose

#
protected virtual void Dispose(bool isDisposing)
Dispose method.
isDisposing (bool)