RhinoCommon API
ViewportInfoExtents Method (Double, BoundingBox) |
Extends this viewport view to include a bounding box.
Use Extents() as a quick way to set a viewport to so that bounding volume is inside of a viewports frustrum. The view angle is used to determine the position of the camera.
Namespace: Rhino.DocObjects
Assembly: RhinoCommon (in RhinoCommon.dll)

public bool Extents( double halfViewAngleRadians, BoundingBox bbox )
Public Function Extents ( halfViewAngleRadians As Double, bbox As BoundingBox ) As Boolean
Parameters
- halfViewAngleRadians
- Type: SystemDouble
1/2 smallest subtended view angle in radians. - bbox
- Type: Rhino.GeometryBoundingBox
A bounding box in 3d world coordinates.
Return Value
Type: Booleantrue if the operation succeeded; otherwise, false.

Rhino for Mac
Supported in: 5.4Rhino for Windows
Supported in: 6.14