DiscussionsIssue archiveModeling Data and Algorithms

Archived discussion

How to put AIS_InteractiveObject to a Bnd_Box?

Modeling Data and AlgorithmsTue, 12/27/2022 - 20:511 reply

Browse this forum
QuestionAuthor

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?

Discussion

1 archived reply

Posts are displayed in their archived order.

01Commenter-1

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.