Click or drag to resize
RhinoObjectTryGetRenderPrimitiveBoundingBox Method
Get the bounding box for the custom render meshes associated with this object.

Namespace: Rhino.DocObjects
Assembly: RhinoCommon (in RhinoCommon.dll) Version: Rhino 6.0
Syntax
public bool TryGetRenderPrimitiveBoundingBox(
	ViewportInfo viewport,
	bool preview,
	out BoundingBox boundingBox
)

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