MeshInstance

References
public class MeshInstance
Representation of ChangeQueue MeshInstance

Properties

Ancestry

#Since v8.2
public MeshInstance.AncestryRecord[] Ancestry { get; }
Returns a the ancestry information for this object. Note well - the ancestry records contain complete copies of the object attributes for each level of the block hierarchy. Please do not be tempted to use the ModelObjectId of the instance objects to look them up in the document - the document may have changed since the change queue entries were added.

CastShadows

#Since v6.0
public bool CastShadows { get; }
obsoleteUse ObjectAttributes
Return true if mesh instance should cast shadows

Decals

#Since v7.0
public Decals Decals { get; }
Read-only access to the decals for this MeshInstance if any. Null if no object attributes exist for this mesh instance.

GroupId

#Since v6.0
[CLSCompliant(false)] public uint GroupId { get; }
Get identifier that specifies the grouping of these mesh instances - usually based on the object that this originally comprised.

InstanceId

#Since v6.0
[CLSCompliant(false)] public uint InstanceId { get; }
Get the instance identifier for this mesh instance.

MaterialId

#Since v6.0
[CLSCompliant(false)] public uint MaterialId { get; }
The Material CRC / RenderHash

MeshId

#Since v6.0
public Guid MeshId { get; }
Get the mesh identifier for this mesh instance.

MeshIndex

#Since v6.0
public int MeshIndex { get; }
obsoleteWill always return 0
Get the mesh index for this mesh instance.

ObjectAttributes

#Since v8.0
public ObjectAttributes ObjectAttributes { get; }
The ObjectAttributes associated with a MeshInstance

OcsTransform

#Since v7.0
public Transform OcsTransform { get; }
obsoleteAlways returns identity
OCS Transform for the MeshInstance - this is the Object Coordinate System texture mapping transformation set in the texture mapping properties dialog. (identity means no OCS, potentially just simple WCS/WCS Box)

ParentId

#Since v7.1
public Guid ParentId { get; }
Get the Guid of the object that is at the parent of the MeshInstance ancestry, or Guid.Empty if there is no parent.

ReceiveShadows

#Since v6.0
public bool ReceiveShadows { get; }
obsoleteUse ObjectAttributes
Return true if mesh instance should receive shadows

RenderMaterial

#Since v6.0
public RenderMaterial RenderMaterial { get; }
RenderMaterial associated with mesh instance

RootId

#Since v7.1
public Guid RootId { get; }
Get the Guid of the object that is at the root of the MeshInstance ancestry, or Guid.Empty if this has no root.

Transform

#Since v6.0
public Transform Transform { get; }
Transform for the MeshInstance