RenderPrimitive
Inheritance Hierarchy
System.Object
Rhino.Render.RenderPrimitive
Namespace: Rhino.Render
Assembly: RhinoCommon (in RhinoCommon.dll)
Syntax
public class RenderPrimitive : IDisposable
The RenderPrimitive type exposes the following members.
Properties
Name
Description
Public Property
BoundingBox
The bounding box for this primitive.
Public Property
InstanceTransform
Instance reference transform or Identity if not an instance reference.
Public Property
PrimitiveType
Call this before extracting meshes if you support render primitives to get the RenderPrimitiveType of this mesh then call the associated
TryGetSphere(Sphere.)
,TryGetPlane(PlaneSurface.)
,TryGetCone(Cone., Plane.)
, orTryGetBox(Box.)
method. Calling theMesh.
property will mesh the primitive and return a mesh always.Public Property
RenderMaterial
The
RenderMaterial
associated with this mesh or null if there is not one.Public Property
RhinoObject
The Rhino object associated with this render primitive.
Methods
Name
Description
Public Method
Dispose.
Releases all resources used by the RenderPrimitive
Protected Method
Dispose(Boolean)
Releases the unmanaged resources used by the RenderPrimitive and optionally releases the managed resources
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
GetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected Method
MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public Method
Mesh
Returns the mesh associated with the object, this will mesh primitives and always return a mesh.
Public Method
ToString
Returns a string that represents the current object.
(Inherited from Object.)
Public Method
TryGetBox
Call this method to get a Box primitive for this mesh. If this meshes
PrimitiveType
is not a Box then the box parameter is set toEmpty
.Public Method
TryGetCone
Call this method to get a Cone primitive for this mesh. If this meshes
PrimitiveType
is not a Cone then the cone parameter is set toUnset
and the truncation parameter is set toUnset
.Public Method
TryGetPlane
Call this method to get a Plane primitive for this mesh. If this meshes
PrimitiveType
is not a Plane then the plane parameter is set to null.Public Method
TryGetSphere
Call this method to get a sphere primitive for this mesh. If this meshes
PrimitiveType
is not a Sphere then the sphere parameter is set toUnset
.