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. Is it possible to display a 3D surface graph from a 3D scatter graph in Qt C++?

Is it possible to display a 3D surface graph from a 3D scatter graph in Qt C++?

Scheduled Pinned Locked Moved Unsolved General and Desktop
q3dscatterq3dsurface
6 Posts 3 Posters 1.1k 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.
  • E Offline
    E Offline
    Elthon
    wrote on last edited by
    #1

    I have a set of (x,y,z) points which I have used QVector3D to append the Q3DScatter Series to be displayed in a Q3DScatter graph. However, is there any possible way for me to display the same set of (x,y,z) points into a Q3DSurface graph? Really appreciate if anyone can help to enlighten me!

    K 1 Reply Last reply
    0
    • E Elthon

      I have a set of (x,y,z) points which I have used QVector3D to append the Q3DScatter Series to be displayed in a Q3DScatter graph. However, is there any possible way for me to display the same set of (x,y,z) points into a Q3DSurface graph? Really appreciate if anyone can help to enlighten me!

      K Offline
      K Offline
      koahnig
      wrote on last edited by
      #2

      @Elthon

      Hi and welcome to devnet forum

      Did you checkout already this example? https://doc.qt.io/qt-5/qtdatavisualization-surface-example.html

      Vote the answer(s) that helped you to solve your issue(s)

      E 1 Reply Last reply
      0
      • gde23G Offline
        gde23G Offline
        gde23
        wrote on last edited by
        #3

        In general when you have scattered data, that you want to plot as surface, what you need is some kind of triangulation in between the points.
        The most common method typically used is delaunay-triangulation.
        However I'm not familiar with Qt3D so I don't know how you would do that there.

        E 1 Reply Last reply
        0
        • K koahnig

          @Elthon

          Hi and welcome to devnet forum

          Did you checkout already this example? https://doc.qt.io/qt-5/qtdatavisualization-surface-example.html

          E Offline
          E Offline
          Elthon
          wrote on last edited by
          #4

          @koahnig Hello, thanks for your reply. I have already checked on the example done by Qt. However, I am unsure about the rationale behind how they add data into the surface graph. For example, what is a row data in a surface graph?

          K 1 Reply Last reply
          0
          • gde23G gde23

            In general when you have scattered data, that you want to plot as surface, what you need is some kind of triangulation in between the points.
            The most common method typically used is delaunay-triangulation.
            However I'm not familiar with Qt3D so I don't know how you would do that there.

            E Offline
            E Offline
            Elthon
            wrote on last edited by
            #5

            @gde23 i see, thanks for your reply

            1 Reply Last reply
            0
            • E Elthon

              @koahnig Hello, thanks for your reply. I have already checked on the example done by Qt. However, I am unsure about the rationale behind how they add data into the surface graph. For example, what is a row data in a surface graph?

              K Offline
              K Offline
              koahnig
              wrote on last edited by
              #6

              @Elthon said in Is it possible to display a 3D surface graph from a 3D scatter graph in Qt C++?:

              @koahnig Hello, thanks for your reply. I have already checked on the example done by Qt. However, I am unsure about the rationale behind how they add data into the surface graph. For example, what is a row data in a surface graph?

              From the example you would need to have your data values on grid. In case you have no grid and only randomly distributed data points, you would need to get some interpolation onto a grid. That is the way Ihave done long before Qt.

              Unfortunately I have no experience with Qt3D in this respect.

              Vote the answer(s) that helped you to solve your issue(s)

              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