RenderPrimitiveList
ReferencesobsoleteUse RenderPrimitives
Finalizer
~RenderPrimitiveList
#~RenderPrimitiveList()
Properties
The Rhino object associated with this list
Methods
Add primitive box and material.
Parameters:
| box (Box) | Box to add. |
| material (RenderMaterial) | Material to add, may be null if not needed. |
Add primitive cone and material.
Parameters:
| cone (Cone) | Cone to add. |
| truncation (Plane) | The plane used to cut the cone (the non-apex end is kept). Should be equal to cone.plane if not truncated. |
| material (RenderMaterial) | Material to add, may be null if not needed. |
Parameters:
| meshes (IEnumerable<Mesh>) | |
| material (RenderMaterial) |
Add mesh and material.
Parameters:
| mesh (Mesh) | Mesh to add. |
| material (RenderMaterial) | Transformation of this mesh. Material to add, may be null if not needed. |
| t (Transform) |
Add mesh and material.
Parameters:
| mesh (Mesh) | Mesh to add. |
| material (RenderMaterial) | Material to add, may be null if not needed. |
Add primitive plane and material.
Parameters:
| plane (PlaneSurface) | Plane to add. |
| material (RenderMaterial) | Material to add, may be null if not needed. |
Add primitive sphere and material.
Parameters:
| sphere (Sphere) | Sphere to add. |
| material (RenderMaterial) | Material to add, may be null if not needed. |
public void ConvertMeshesToTriangles()
Convert mesh quad faces to triangle faces.
public void Dispose()
Parameters:
| index (int) |
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.
Parameters:
| index (int) | The zero based index of the item in the list. Valid values are greater than or equal to 0 and less than Count. |
Returns: If there is a render material associated at the requested index then the material is returned otherwise null is returned.
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.
Parameters:
| index (int) | The zero based index of the item in the list. Valid values are greater than or equal to 0 and less than Count. |
Returns: 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.
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.
Parameters:
| index (int) | 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 (out Transform) | Receives the transformation of this mesh. |
Returns: 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.
Type of primitive object at this index.
Parameters:
| index (int) | The zero based index of the item in the list. Valid values are greater than or equal to 0 and less than Count. |
Returns: Primitive type of the item at this index.
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.
Returns: 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.
public Mesh[] ToMeshArray()
Call this method to get a array of meshes, all primitives will get meshed and the meshes will get included in the returned array.
Returns: Return an array of meshes from this list, this will convert all primitives to meshes.
Call this method to get a box at the specified index.
Parameters:
| index (int) | The zero based index of the item in the list. Valid values are greater than or equal to 0 and less than Count. |
| box (out 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. |
Returns: Return true if the index is in range and the primitive at the requested index is a box otherwise returns false.
Call this method to get a box at the specified index.
Parameters:
| index (int) | The zero based index of the item in the list. Valid values are greater than or equal to 0 and less than Count. |
| cone (out 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. |
| truncation (out Plane) |
Returns: Return true if the index is in range and the primitive at the requested index is a box otherwise returns false.
Call this method to get a box at the specified index.
Parameters:
| index (int) | The zero based index of the item in the list. Valid values are greater than or equal to 0 and less than Count. |
| plane (out PlaneSurface) | Will contain the plane at the requested index if the index is in range and the primitive at the requested index is a plane. |
Returns: Return true if the index is in range and the primitive at the requested index is a plane otherwise returns false.
Call this method to get a box at the specified index.
Parameters:
| index (int) | The zero based index of the item in the list. Valid values are greater than or equal to 0 and less than Count. |
| sphere (out 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. |
Returns: Return true if the index is in range and the primitive at the requested index is a box otherwise returns false.