RenderMeshes

References
RenderMeshes is a collection of geometry instances for a given ObjectId typically returned by the Custom Render primitive system. As each set of primitives is returned by the RenderMeshProviders in turn, the running hash is updated with new information about the primitive modifications that have been made along the way.

Constructors

RenderMeshes

#Since v8.0
[CLSCompliant(false)] public RenderMeshes(RhinoDoc doc, Guid objectId, Guid renderMeshProviderId, uint runningHash, uint flags)
Create a new render primitives collection.
doc (RhinoDoc)The Rhino document with which this collection will be associated.
objectId (Guid)The ObjectId that this collection is for.
renderMeshProviderId (Guid)The RenderMeshProvider that created this collection - if this is the first in the stack, typically this will be ON_nil_uuid.
runningHash (uint)The running hash of this collection - each RenderMeshProvider will update the hash with its own modification hash.
flags (uint)The flags these render meshes were created with.

RenderMeshes

#Since v8.0 Obsolete v8.14
[CLSCompliant(false)] public RenderMeshes(RhinoDoc doc, Guid objectId, Guid renderMeshProviderId, uint runningHash)
Create a new render primitives collection.
doc (RhinoDoc)The Rhino document with which this collection will be associated.
objectId (Guid)The ObjectId that this collection is for.
renderMeshProviderId (Guid)The RenderMeshProvider that created this collection - if this is the first in the stack, typically this will be ON_nil_uuid.
runningHash (uint)The running hash of this collection - each RenderMeshProvider will update the hash with its own modification hash.

Finalizer

~RenderMeshes

#
~RenderMeshes()
Finalizer for this collection

Properties

Document

#Since v8.0
public RhinoDoc Document { get; }
The document with which this IRenderMeshes object is associated.

Hash

#Since v8.6
[CLSCompliant(false)] public uint Hash { get; set; }
The running hash for these render meshes.

InstanceCount

#Since v8.0
public int InstanceCount { get; }
The number of instance objects in this collection.

ObjectId

#Since v8.0
public Guid ObjectId { get; }
The ObjectId with which this IRenderMeshes object is associated.

Methods

AddInstance

#Since v8.0
public void AddInstance(Instance instance)
Adds a new instance to the render primitives collection.
instance (Instance)The instance to be added.

Dispose

#Since v8.0
public void Dispose()
Dispose this collection

Dispose

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

GetEnumerator

#Since v8.0
public IEnumerator<Instance> GetEnumerator()
Return an object to iterator over the instances in the collection

GetHashCode

#
public override int GetHashCode()
Overrides default hash code function - just returns Hash
Explicit

IEnumerable.GetEnumerator

#Since v8.0
IEnumerator IEnumerable.GetEnumerator()