RenderPrimitive.TryGetBox Method

RenderPrimitiveTryGetBox Method

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 to Empty.

Namespace:  Rhino.Render
Assembly:  RhinoCommon (in RhinoCommon.dll)
Syntax
public bool TryGetBox(
	out Box box
)
Public Function TryGetBox ( 
	<OutAttribute> ByRef box As Box
) As Boolean

Parameters

box
Type: Rhino.GeometryBox
Gets set to the box primitive for this object on success or Empty on error.

Return Value

Type: Boolean
Returns true if PrimitiveType is Box and the box parameter was initialized otherwise returns false.
Version Information

Rhino for Windows

Supported in: 6.8
See Also