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 18 Jun 2021, 15:08 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 18 Jun 2021, 16:43
    0
    • E Elthon
      18 Jun 2021, 15:08

      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 18 Jun 2021, 16:43 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 19 Jun 2021, 02:41
      0
      • G Offline
        G Offline
        gde23
        wrote on 18 Jun 2021, 21:40 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 19 Jun 2021, 05:32
        0
        • K koahnig
          18 Jun 2021, 16:43

          @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 19 Jun 2021, 02:41 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 19 Jun 2021, 17:13
          0
          • G gde23
            18 Jun 2021, 21:40

            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 19 Jun 2021, 05:32 last edited by
            #5

            @gde23 i see, thanks for your reply

            1 Reply Last reply
            0
            • E Elthon
              19 Jun 2021, 02:41

              @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 19 Jun 2021, 17:13 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

              1/6

              18 Jun 2021, 15:08

              • Login

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