Hi,
I'm working on a project where the program generate the QPainterPaths, later this path will be converted to GRBL commands and fed to the CNC machines.
I see from the QPainterPath source most of the paths of arcs, ellipse and curve are converted/drawn using cubic bezier curve by calling cubicTo.
Unfortunately GRBL provides commands for only arcs and lines.
So the bezier curve need to be converted/approximated in to set of arcs and lines before the bezier curve can be drawn by the machine.
So can someone please let me know how this can be achieved in Qt?
what I'm tying to achive is same as mentioned in these document.
Cubic bezier approximation
http://ac.els-cdn.com/S0377042796000...15fa82b6afe5bc
Quadratic bezier approximation
http://ac.els-cdn.com/03770427949039...642e0e264dd6c7


Reply With Quote

Bookmarks