Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Game Development
  4. Qt3D/QML Geometry Bounding Box
QtWS25 Last Chance

Qt3D/QML Geometry Bounding Box

Scheduled Pinned Locked Moved Solved Game Development
qt3dqmlgeometry
3 Posts 2 Posters 2.3k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    Tom_H
    wrote on 30 Nov 2017, 18:50 last edited by
    #1

    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.

    1 Reply Last reply
    2
    • ? Offline
      ? Offline
      A Former User
      wrote on 30 Nov 2017, 20:45 last edited by A Former User
      #2

      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.

      T 1 Reply Last reply 30 Nov 2017, 21:56
      1
      • ? A Former User
        30 Nov 2017, 20:45

        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.

        T Offline
        T Offline
        Tom_H
        wrote on 30 Nov 2017, 21:56 last edited by
        #3

        @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.

        1 Reply Last reply
        0

        3/3

        30 Nov 2017, 21:56

        • Login

        • Login or register to search.
        3 out of 3
        • First post
          3/3
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved