Three point arc curve interpolate

Hi everyone. I am working in a automatic method to automatize some task that are manually. I got a squish curve (PBS_NOK file) wich is a 2D curve with multiple points, I want to rebuild that curve with three point arcs in order to be functional for a CNC machine (PBS_OK). Can someone help me with a code to rebuild PBS_NOK curve like PBS_OK curve.

Thanks to everyone for the help. PBS_NOK.dxf (197.9 KB)
PBS_OK.dxf (217.4 KB)

Hi @direyes_11,

The Rhino SDK does not have a function (or functions) that will take a polyline with lots of points and convert it to a polycurve with line and arc segments. I’ve submitted a wish for such a tool.

https://mcneel.myjetbrains.com/youtrack/issue/RH-47602

– Dale