Skip to content

RenderPrimitive

Public Class

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

The bounding box for this primitive.


Public Property

Instance reference transform or Identity if not an instance reference.


Public Property

Call this before extracting meshes if you support render primitives to get the RenderPrimitiveType of this mesh then call the associated

, , , or method. Calling the property will mesh the primitive and return a mesh always.


Public Property

The

associated with this mesh or null if there is not one.


Public Property

The Rhino object associated with this render primitive.


Methods

Name

Description


Public Method

Releases all resources used by the RenderPrimitive


Protected Method

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

(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

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

Call this method to get a Box primitive for this mesh. If this meshes

is not a Box then the box parameter is set to .


Public Method

Call this method to get a Cone primitive for this mesh. If this meshes

is not a Cone then the cone parameter is set to and the truncation parameter is set to .


Public Method

Call this method to get a Plane primitive for this mesh. If this meshes

is not a Plane then the plane parameter is set to null.


Public Method

Call this method to get a sphere primitive for this mesh. If this meshes

is not a Sphere then the sphere parameter is set to .