RhinoCommon API
RhinoObjectTryGetRenderPrimitiveBoundingBox Method (ViewportInfo, Boolean, BoundingBox) |
Note: This API is now obsolete.
Get the bounding box for the custom render meshes associated with this
object.
Namespace: Rhino.DocObjects
Assembly: RhinoCommon (in RhinoCommon.dll)

[ObsoleteAttribute] public bool TryGetRenderPrimitiveBoundingBox( ViewportInfo viewport, bool preview, out BoundingBox boundingBox )
<ObsoleteAttribute> Public Function TryGetRenderPrimitiveBoundingBox ( viewport As ViewportInfo, preview As Boolean, <OutAttribute> ByRef boundingBox As BoundingBox ) As Boolean
Parameters
- viewport
- Type: Rhino.DocObjectsViewportInfo
The viewport being rendered. - preview
- Type: SystemBoolean
Type of mesh to build, if preview is true then a smaller mesh may be generated in less time, false is meant when actually rendering. - boundingBox
- Type: Rhino.GeometryBoundingBox
This will be set to BoundingBox.Unset on failure otherwise it will be the bounding box for the custom render meshes associated with this object.
Return Value
Type: BooleanReturns true if the bounding box was successfully calculated otherwise returns false on error.

Rhino for Windows
Obsolete (compiler warning) in 6.8