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