Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Drawing 3D from x, y, z coordinates..
In my project, i need to draw 3d from x,y,z coordinates. how should i do it?
A Former User last edited by
Hi! You can use QOpenGLWidget for example.
Hi and welcome
What kind of 3d ?
OpenGL is very good for all 3D.
If you want better input, you should specify a bit more what you have, and what you want to draw,
Well, I have file which contains coordinates x,y,z. from which I am reading data using "textstream" by "readLine" function, (which is by the cnc gcode file). now from this data i need to draw tool path which in 3d.
this link shows what i want http://camotics.org/images/screenshots/tool_path_view.png
pretty cool :)
I think the QOpenGLWidget @wieland suggest will work fine.
if you never used openGL before, prepare to learn/read first.
thanks guys for helping out !!!
A Former User last edited by A Former User
If you plan to build something more complex than just drawing points in 3D space, maybe look for a more sophisticated library instead of reinventing the wheel (which is much harder than you might think). E.g. FreeCAD supports plugins; a primitive but free CAD kernel is Open Cascade.