RenderPrimitiveList

References
obsoleteUse RenderPrimitives

Finalizer

~RenderPrimitiveList

#
~RenderPrimitiveList()

Properties

Count

#Since v5.7 Obsolete v8.0
Number of meshes in this list
public int Count { get; }

RhinoObject

#Since v5.7 Obsolete v8.0
The Rhino object associated with this list
public RhinoObject RhinoObject { get; }

UseObjectsMappingChannels

#Since v5.7 Obsolete v8.0
Returns true if the texture mapping will be taken from the Rhino object otherwise; the texture mapping will use the texture coordinates on the mesh only.
public bool UseObjectsMappingChannels { get; set; }

Methods

Add

#Since v5.7 Obsolete v8.0
Add primitive box and material.
public void Add(
box,
Box to add.
material
Material to add, may be null if not needed.
)

Add

#Since v5.7 Obsolete v8.0
Add primitive cone and material.
public void Add(
cone,
Cone to add.
truncation,
The plane used to cut the cone (the non-apex end is kept). Should be equal to cone.plane if not truncated.
material
Material to add, may be null if not needed.
)

Add

#Since v7.5 Obsolete v8.0
public void Add(
meshes,
material
)

Add

#Since v6.12 Obsolete v8.0
Add mesh and material.
public void Add(
Mesh
mesh,
Mesh to add.
material,
Transformation of this mesh. Material to add, may be null if not needed.
t
)

Add

#Since v5.7 Obsolete v8.0
Add mesh and material.
public void Add(
Mesh
mesh,
Mesh to add.
material
Material to add, may be null if not needed.
)

Add

#Since v5.7 Obsolete v8.0
Add primitive plane and material.
public void Add(
plane,
Plane to add.
material
Material to add, may be null if not needed.
)

Add

#Since v5.7 Obsolete v8.0
Add primitive sphere and material.
public void Add(
sphere,
Sphere to add.
material
Material to add, may be null if not needed.
)

AutoDeleteMaterialsOn

#Since v6.0 Obsolete v8.0
public bool AutoDeleteMaterialsOn()

AutoDeleteMeshesOn

#Since v6.0 Obsolete v8.0
public bool AutoDeleteMeshesOn()

Clear

#Since v5.7 Obsolete v8.0
Remove all primitives from this list
public void Clear()

ConvertMeshesToTriangles

#Since v5.7 Obsolete v8.0
Convert mesh quad faces to triangle faces.
public void ConvertMeshesToTriangles()

Dispose

#Since v5.7 Obsolete v8.0
public void Dispose()

GetInstanceTransform

#Since v6.0 Obsolete v8.0
public Transform GetInstanceTransform(
index
)

Material

#Since v5.7 Obsolete v8.0
Call this method to get the render material associated with the mesh at the specified index. Will return null if there is no material associated with the requested mesh.
public RenderMaterial Material(
index
The zero based index of the item in the list. Valid values are greater than or equal to 0 and less than Count.
)
If there is a render material associated at the requested index then the material is returned otherwise null is returned.

Mesh

#Since v5.7 Obsolete v8.0
Get the mesh for the primitive at the specified index. If the item at this index is a primitive type other than a mesh then it mesh representation is returned.
public Mesh Mesh(
index
The zero based index of the item in the list. Valid values are greater than or equal to 0 and less than Count.
)
Returns the mesh for the primitive at the specified index. If the item at this index is a primitive type other than a mesh then it mesh representation is returned.

MeshInstance

#Since v6.12 Obsolete v8.0
Get the mesh for the primitive at the specified index. If the item at this index is a primitive type other than a mesh then it mesh representation is returned.
public Mesh MeshInstance(
index,
The zero based index of the item in the list. Valid values are greater than or equal to 0 and less than Count.
instance_transform
Receives the transformation of this mesh.
)
Returns the mesh for the primitive at the specified index. If the item at this index is a primitive type other than a mesh then it mesh representation is returned.

PrimitiveType

#Since v5.7 Obsolete v8.0
Type of primitive object at this index.
public RenderPrimitiveType PrimitiveType(
index
The zero based index of the item in the list. Valid values are greater than or equal to 0 and less than Count.
)
Primitive type of the item at this index.

SetInstanceTransform

#Since v6.0 Obsolete v8.0
public void SetInstanceTransform(
index,
xform
)

ToMaterialArray

#Since v5.7 Obsolete v8.0
Call this method to see if there are any RenderMaterials associated with the meshes. Each primitive can optionally have a RenderMaterial associated with it, if the RenderMaterial is null then check for a RhinoObject.RenderMaterial.
public RenderMaterial[] ToMaterialArray()
Return an array that of the same size as the ToMeshArray() containing the RenderMaterial associated with the mesh, may contain null entries if there is no RenderMaterial associated with the custom mesh.

ToMeshArray

#Since v5.7 Obsolete v8.0
Call this method to get a array of meshes, all primitives will get meshed and the meshes will get included in the returned array.
public Mesh[] ToMeshArray()
Return an array of meshes from this list, this will convert all primitives to meshes.

TryGetBox

#Since v5.7 Obsolete v8.0
Call this method to get a box at the specified index.
public bool TryGetBox(
index,
The zero based index of the item in the list. Valid values are greater than or equal to 0 and less than Count.
out Box
box
Will contain the box at the requested index if the index is in range and the primitive at the requested index is a box.
)
Return true if the index is in range and the primitive at the requested index is a box otherwise returns false.

TryGetCone

#Since v5.7 Obsolete v8.0
Call this method to get a box at the specified index.
public bool TryGetCone(
index,
The zero based index of the item in the list. Valid values are greater than or equal to 0 and less than Count.
out Cone
cone,
Will contain the cone at the requested index if the index is in range and the primitive at the requested index is a box.
out Plane
truncation
)
Return true if the index is in range and the primitive at the requested index is a box otherwise returns false.

TryGetPlane

#Since v5.7 Obsolete v8.0
Call this method to get a box at the specified index.
public bool TryGetPlane(
index,
The zero based index of the item in the list. Valid values are greater than or equal to 0 and less than Count.
plane
Will contain the plane at the requested index if the index is in range and the primitive at the requested index is a plane.
)
Return true if the index is in range and the primitive at the requested index is a plane otherwise returns false.

TryGetSphere

#Since v5.7 Obsolete v8.0
Call this method to get a box at the specified index.
public bool TryGetSphere(
index,
The zero based index of the item in the list. Valid values are greater than or equal to 0 and less than Count.
out Sphere
sphere
Will contain the sphere at the requested index if the index is in range and the primitive at the requested index is a box.
)
Return true if the index is in range and the primitive at the requested index is a box otherwise returns false.