RhinoCommon API
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)
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: BooleanReturns true if PrimitiveType is Box and the box parameter was initialized otherwise returns false.