RickMcConney / PenPlotter

Polar graph controler that uses repetier firmware. Inspired by work at http://www.polargraph.co.uk
GNU General Public License v2.0
120 stars 26 forks source link

Cubic Bezier curves plotting #26

Open monte-monte opened 5 years ago

monte-monte commented 5 years ago

Feature reuest Current version of Marlin firmware has a method to draw cubic Bezier curves, and adds G5 command to its g-code. I understand that it might be not trivial to rework this functionality for polar coordinates, but it definitely would be great to have. I tried to look at code myself but I'm afraid that my math and program skills are too low for this task. Maybe you could look at it and at least evaluate how hard it would be to implement in your version of firmware. https://github.com/MarlinFirmware/Marlin/blob/1.1.x/Marlin/planner_bezier.cpp Anyhow thanks for your work.

RickMcConney commented 5 years ago

It would be relatively easy to port any changes to the new marlin as they are marked with a #define POLAR. But it would be substantially harder to make use of the new gcode as my code converts svg with the use of a library called geomerative. It converts svg file into a list of paths that my code then coverts to gcode and sends to the plotter. I would have to rewrite the parsing to preserve any bezier curves so that the new gcode could be used.