Qt3D/QML Geometry Bounding Box



  • Hello. How do I get the bounding box of a Geometry? I need to measure the extents so I can position it properly. Specifically, I'm trying to center an ExtrudedTextMesh, but I will need to measure other geometries. Thanks.



  • Hi! AFAIK there's no public interface for that. But the object picker does just that, it visits the geometry nodes of a scene and computes the bounding spheres for the single triangles and whole meshes. Maybe you want to have a look at the sources and see what you can reuse.



  • @Wieland I was afraid of that. Seems like a glaring omission. Oh well, I needed to download the sources anyway to peek at Scene3D. Thanks.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.