RhinoDoc.TryGetRenderPrimitiveBoundingBox Method

RhinoDocTryGetRenderPrimitiveBoundingBox Method

Get the bounding box for the custom render meshes associated with this document (ie - GH meshes).

Namespace:  Rhino
Assembly:  RhinoCommon (in RhinoCommon.dll)
Syntax
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: Boolean
Returns true if the bounding box was successfully calculated otherwise returns false on error.
Version Information

Rhino for Windows

Supported in: 6.14
See Also