Bounding Box of objects in AIS_InteractiveContext

Hello,

is there a way to get the bounding box (3D) of all displayed AIS_InteractiveObject's in a context?

Or that from a single AIS_InteractiveObject (without having access to the BRep from which it was created)?

Regards, Hannes

Kirill Gavrilov's picture

You can use AIS_InteractiveObject::BoundingBox() within object displayed in AIS_InteractiveContext.
Note that it is NOT exactly the same bounding box which would be computed for Shape (depending on parameters).

For bounding box of entire View - check documentation of the method Graphic3d_CView::MinMaxValues().