RenderPrimitiveList
Note: This API is now obsolete.
Inheritance Hierarchy
System.Object
Rhino.Render.RenderPrimitiveList
Namespace: Rhino.Render
Assembly: RhinoCommon (in RhinoCommon.dll)
Syntax
[ObsoleteAttribute("Use RenderPrimitives")]public class RenderPrimitiveList : IDisposable
The RenderPrimitiveList type exposes the following members.
Properties
Name
Description
Public Property
Count
Number of meshes in this list
Public Property
RhinoObject
The Rhino object associated with this list
Public Property
UseObjectsMappingChannels
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.
Methods
Name
Description
Public Method
Add(Box, RenderMaterial)
Add primitive box and material.
Public Method
Add(IEnumerable.Mesh., RenderMaterial)
Public Method
Add(Mesh, RenderMaterial)
Add mesh and material.
Public Method
Add(PlaneSurface, RenderMaterial)
Add primitive plane and material.
Public Method
Add(Sphere, RenderMaterial)
Add primitive sphere and material.
Public Method
Add(Cone, Plane, RenderMaterial)
Add primitive cone and material.
Public Method
Add(Mesh, RenderMaterial, Transform)
Add mesh and material.
Public Method
AutoDeleteMaterialsOn
Public Method
AutoDeleteMeshesOn
Public Method
Clear
Remove all primitives from this list
Public Method
ConvertMeshesToTriangles
Convert mesh quad faces to triangle faces.
Public Method
Dispose
Releases all resources used by the RenderPrimitiveList
Public Method
Equals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected Method
Finalize
(Overrides Object.Finalize..)
Public Method
GetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public Method
GetInstanceTransform
Public Method
GetType
Gets the Type of the current instance.
(Inherited from Object.)
Public Method
Material
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.
Protected Method
MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public Method
Mesh
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 Method
MeshInstance
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 Method
PrimitiveType
Type of primitive object at this index.
Public Method
SetInstanceTransform
Public Method
ToMaterialArray
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 Method
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.
Public Method
ToString
Returns a string that represents the current object.
(Inherited from Object.)
Public Method
TryGetBox
Call this method to get a box at the specified index.
Public Method
TryGetCone
Call this method to get a box at the specified index.
Public Method
TryGetPlane
Call this method to get a box at the specified index.
Public Method
TryGetSphere
Call this method to get a box at the specified index.