Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt3D - Dynamic Mesh
QtWS25 Last Chance

Qt3D - Dynamic Mesh

Scheduled Pinned Locked Moved Unsolved General and Desktop
qt3ddynamic mesh
2 Posts 2 Posters 1.2k 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
    THE_MASTER
    wrote on 19 Oct 2016, 18:01 last edited by
    #1

    Hi! I have a few questions about Qt3D...
    For example, i have cylindrical mesh. Can i without re-creating QBuffer with all data and appending QAttribute make next:

    1. Change x,y,z coordinates of few vertices of mesh?
    2. Add or Remove few vertices?

    Or, if i need change mesh vertices number or vertices coords, i sheuld to re-create all mesh?

    1 Reply Last reply
    1
    • M Offline
      M Offline
      m.sue
      wrote on 20 Oct 2016, 06:50 last edited by
      #2

      Hi,
      I assume its possible to do this as you have access to the QBuffer data via the buffer() function. You will have to know the internal structure, of course, and adapt the QAttribute members (number of vertices etc.) accordingly afterwards, then maybe even call some update routine on the Qt3DWindow as there was some doubt lately about it being done automatically when the data buffers change.

      On the other hand, I assume the functor in the cylindrical and other mesh examples runs in another thread (as e.g. I was not allowed to update GUI objects from within the functor), so you should ask yourself whether you really need the additional complexity to edit the buffers by yourself.
      -Michael.

      1 Reply Last reply
      1

      1/2

      19 Oct 2016, 18:01

      • Login

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