Click or drag to resize

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)
Syntax
public bool TryGetRenderPrimitiveBoundingBox(
	ViewportInfo viewport,
	DisplayPipelineAttributes attrs,
	out BoundingBox boundingBox
)

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: Boolean
Returns true if the bounding box was successfully calculated otherwise returns false on error.
Version Information

Rhino for Windows

Supported in: 6.0 BETA
See Also