For all issues regarding the Forums use, please, refer to the Forum Rules.

Our Solutions

Need professional assistance?
Consider our:

Support Offerings

 

Need to speed up your development?
Have a look at our:

Samples & Tools

 

Need some functionality extending standard OCCT capabilities?
Check out our:

Adv. Components

Related pages

Bounding Box of objects in AIS_InteractiveContext

Hannes Kroeger's picture
Forums: 

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'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().