Retrieving Overlapping Node Ids with Bounding Box

Is there a built-in method to retrieve all node Ids that intersect or partially overlap with a bounding box in the 3D space?

If such a method is not available, what would be the recommended approach to implement overlap detection between the bounding box and other scene objects?

Hello @praful.bharate,

As a continuation from our response to your other post, you can also use a polyhedron selection. But in order to determine the nodes that overlap a given volume (the bounding box), you will need to do two selection operations:

  • In the first selection, set the option IncrementalPickConfig.mustBeFullyContained to false. So this selection returns nodes that are fully contained and overlapping with the defined volume.

  • In the second selection, set IncrementalPickConfig.mustBeFullyContained to true which returns only nodes inside the volume. You can then subract the results of the second selection set from the first selection set to arrive at only the nodes that intersect the volume boundaries.

Thanks,
Tino

Thanks @tino, it was helpful.