Forum archiveIssue archiveVisualization and 3D Viewer

Archived discussion

Bounding Box of objects in AIS_InteractiveContext

Visualization and 3D ViewerWed, 01/17/2018 - 17:141 reply

Browse this forum
QuestionAuthor

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, Author

Discussion

1 archived reply

Posts are displayed in their archived order.

01Commenter-1

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