This GCode Post-Processor Squeezes Lines Into Arcs?

How can this be altered to be used in Grasshopper?

the best is to code from a script from @visose, transform it a little and you could have a tool that do the job.

Thank you @laurent_delrieu what do mean by “transform it a little” … and where do you suggest I start in learning how to code?

You will find here the tool.
polyline to arcs and lines (9.2 KB)

For me it had limitations so I change it a bit for my own projects.
My tool output a bit less curves
4 vs 12

3 vs 7



Thank you @laurent_delrieu … what did you change? How did you make it more efficient?