Draw 3D Line between 3D Points (QT Data Visualization)
-
Hi Guys,
i created a Qt Data visualisation like the example of QT .. look here :
https://doc.qt.io/qt-5/qtdatavisualization-scatter-example.htmlso now i have some 3 D Points .
Now i want to draw a Line which gows through this Points.in 2D Chart i would create series and add the Points.
QLineSeries* series1 = new QLineSeries();
series1->append(XKoordinate, YKoordinate);and then add it to the chart.
is this also possible with a 3D line in the scatter ?
Thanks fr your Help
-
Yes I want to try this also. In Data Visualization , to show 3d point with 3dscatter is ok, but why there is not option for show the 3dScatter with 3d line(3d spline) to link these 3d points.
I think a lot of people want this.
How can we feed back to QT project team ?Dear BadHomebre, if you have any ideal or news on it kindly please share it with us.
-
Hold your horses, allow for more time before bumping up your (or in this case related) thread.
From what I can tell you can't directly, you should make your own spline interpolation (e.g. a bezier spline) that passes through 3D space. -
@cawlfj said in Draw 3D Line between 3D Points (QT Data Visualization):
You means only the way through QtOpenGL?
No I mean you should probably do your own math and then use whatever you feel is most natural to draw the result of that math. OpenGL is for drawing, not for doing math.