Volume Selection Using Sphere in HOOPS Communicator

Hello TechSoft3D,

We are currently using the beginConvexPolyhedronSelection API to perform volume selection using a polygon, which allows us to identify nodes located within the defined polygon volume.

However, we would like to achieve a similar selection using a sphere instead of a polygon. Could you please advise on the recommended approach to perform volume selection using a spherical region and retrieve the nodes inside that spherical volume?

Is there an existing API or best practice for achieving this with the HOOPS Communicator?

Thank you for your support.

The function beginConvexPolyhedronSelection is expecting planes that define the boundaries of the geometric volume. If you can provide that, then the function should work. That said, Communicator does not have a function that subdivides surfaces, for example, a cube subdivided such that is becomes more of a sphere — so you would have to create such a function.

what about beginSphereSelection function?

Indeed, beginSphereSelection would be a better fit for your needs. Admittedly, I was unaware it actually existed.