RHINOCOMMON; how to get extents of a model's bunding box

The below RHINO.SDK code allowed me to get a bounding box from the extents of a rhino model

 

Dim rmaIOnBoundingBoxModel As RMA.OpenNURBS.IOnBoundingBox = RMA.Rhino.RhUtil.RhinoApp.ActiveDoc.BoundingBox

Dim rmaArrayModelCornerPoints As New RMA.OpenNURBS.On3dPointArray

rmaIOnBoundingBoxModel.GetCorners(rmaArrayModelCornerPoints)

 

I cannot find a similar set of code to do the same in rhinocommon.

 

For instance;

 

Dim rmaIOnBoundingBoxModel As Rhino.Geometry.BoundingBox= Rhino.RhinoDoc.ActiveDoc.BoundingBox

 

does not exist. Any ideas?

 

 

thanks

 

  • up

    David Rutten

    I'll add this function to the Objects list on the RhinoDoc. It will be available from the next version.
    In the meantime, you'll have to iterate over the objects and grow your own box.

    --
    David Rutten
    david@mcneel.com
    Poprad, Slovakia
    6