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
Create a new render primitives collection.
[CLSCompliant(false)] public RenderMeshes(
doc,
The Rhino document with which this collection will be associated.
objectId,
The ObjectId that this collection is for.
renderMeshProviderId,
The RenderMeshProvider that created this collection - if this is the first in the stack, typically this will be ON_nil_uuid.
runningHash,
The running hash of this collection - each RenderMeshProvider will update the hash with its own modification hash.
flags
The flags these render meshes were created with.
)

RenderMeshes

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

Finalizer

~RenderMeshes

#
Finalizer for this collection
~RenderMeshes()

Properties

Document

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

Hash

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

InstanceCount

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

ObjectId

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

Methods

AddInstance

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

Dispose

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

Dispose

#
Dispose
protected virtual void Dispose(
isDisposing
)

GetEnumerator

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

GetHashCode

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

IEnumerable.GetEnumerator

#Since v8.0
IEnumerator IEnumerable.GetEnumerator()