RhinoCommon API
RhinoObjectTryGetRenderPrimitiveBoundingBox Method (ViewportInfo, DisplayPipelineAttributes, BoundingBox) |
Get the bounding box for the custom render meshes associated with this
object.
Namespace: Rhino.DocObjects
Assembly: RhinoCommon (in RhinoCommon.dll)
Since: 6.0

public bool TryGetRenderPrimitiveBoundingBox( ViewportInfo viewport, DisplayPipelineAttributes attrs, out BoundingBox boundingBox )
Public Function TryGetRenderPrimitiveBoundingBox ( viewport As ViewportInfo, attrs As DisplayPipelineAttributes, <OutAttribute> ByRef boundingBox As BoundingBox ) As Boolean
Parameters
- viewport
- Type: Rhino.DocObjectsViewportInfo
The viewport being rendered. - attrs
- Type: Rhino.DisplayDisplayPipelineAttributes
Attributes for the view mode you are supplying meshes for. Will be null if this is a modal 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.
