RhinoObject.TryGetRenderPrimitiveBoundingBox Method (ViewportInfo, Boolean, BoundingBox)

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
)
<ObsoleteAttribute>
Public Function TryGetRenderPrimitiveBoundingBox ( 
	viewport As ViewportInfo,
	preview As Boolean,
	<OutAttribute> ByRef boundingBox As BoundingBox
) As Boolean

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.8
See Also