How to put AIS_InteractiveObject to a Bnd_Box?

I want to put multiple AISInteractiveObjects to a mutual Bnd_Box and then get coordinates of the center of this Bnd_Box . I noticed that BRepBndLib::Add gets TopoDS_Shape, but nothing about ais interactive, so how to either put AISInteractiveObject or get a TopoDS_Shape from AISInteractiveObject? Or probably is there a way to create a container bounding box, construct bounding boxes around AISInteractiveObject and put those boxes into the container one?

gkv311 n's picture

Have you tried using AIS_InteractiveObject::BoundingBox() for displayed objects? In case of your objects are all AIS_Shape you may also collect TopoDS_Shape from them.