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. How to create a custom 3d mesh? (Point after point)
Forum Updated to NodeBB v4.3 + New Features

How to create a custom 3d mesh? (Point after point)

Scheduled Pinned Locked Moved General and Desktop
qt3d
3 Posts 2 Posters 4.1k Views 1 Watching
  • 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.
  • C Offline
    C Offline
    CatBehemoth
    wrote on 14 Sept 2015, 11:15 last edited by SGaist 10 Jul 2015, 19:57
    #1

    Hello community,

    I would like to use qt3d for a display of simple 3D measurement data. The data are stored in [x,y,z] arrays, so the 3D mesh seems to be the best choice to store it. I found an example with a torus mesh which is added to an entity with translation, material etc. What I need is a "custom" mesh which can be created point after point from 3D measurement data. Does anybody have an idea how to do it?

    Thanks in advance
    Martin

    [edit: Fixed styling, SGaist]

    1 Reply Last reply
    0
    • C Offline
      C Offline
      Carlito
      wrote on 7 Oct 2015, 19:56 last edited by
      #2

      Hi Martin,

      I was looking around for a similar thing - unfortunately didn't get far yet. What I found was a Tetrahedron Mesh:

      https://github.com/qtproject/qt3d/commit/891ef957f9d0a2890d4917649eb48ab5d17634ab

      While I didnt try it (yet), it seems to define the vertex buffers etc and push them to the qt3d engine.

      That said, i dont know of dots and lines in Qt3d (does anyone? maybe with some smart shaders..), --> up to now you have triangles.

      the most straightforward way for visualization is maybe to use spheres with a small radius and move them to the position of your 3d data. (checkout the examples "basic shapes cpp", to see how the translation transform is done.

      happy coding :)

      Carl

      ps. if it's really only visualisation of 3d points, maybe you're quicker using matlab or octave (maybe even gnuplot).

      1 Reply Last reply
      0
      • C Offline
        C Offline
        CatBehemoth
        wrote on 8 Oct 2015, 07:48 last edited by
        #3

        Hello Carl,

        thanks for an idea. I implemented a simple point cloud viewer with opengl basic functionality. The problem is that it has to work in the plugin and it crashes when I'm destroying the instance without being shown before. Here is the topic

        1 Reply Last reply
        0

        • Login

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