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
Construct a new Instance object
public Instance()

Finalizer

~Instance

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

Properties

IsForcedMaterial

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

IsRequestingPlugInDependent

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

IsViewDependent

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

Material

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

Mesh

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

Transform

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

Methods

Dispose

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

Dispose

#
Dispose method.
protected virtual void Dispose(
isDisposing
)