Click or drag to resize

RhinoObjectTryGetRenderPrimitiveBoundingBox Method (ViewportInfo, Boolean, BoundingBox)

Note: This API is now obsolete.

Get the bounding box for the custom render meshes associated with this object.

Namespace:  Rhino.DocObjects
Assembly:  RhinoCommon (in RhinoCommon.dll)
Syntax
[ObsoleteAttribute]
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.
Version Information

Rhino for Windows

Obsolete (compiler warning) in 6.0 BETA
See Also