RhinoObjectTryGetRenderPrimitiveBoundingBox Method |
Rhino 5 for Windows
Get the bounding box for the custom render meshes associated with this
object.
Namespace: Rhino.DocObjectsAssembly: RhinoCommon (in RhinoCommon.dll) Version: 5.1.30000.17 (5.13.60913.21340)
Syntaxpublic bool TryGetRenderPrimitiveBoundingBox(
ViewportInfo viewport,
bool preview,
out BoundingBox boundingBox
)
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:
Boolean
Returns true if the bounding box was successfully calculated otherwise
returns false on error.
See Also