Tue, 12/27/2022 - 20:51
Forums:
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?
Wed, 12/28/2022 - 10:38
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.