I found a way not too bad, for my applications (3d printing) I choose to prefer arcs over lines, but it could be possible to make a script with just arcs.
Explained here
Hello
@Petras_Vestartas
Yes it is possible. You can do that
Use Clipper
Make a small script that takes a polyline and extract arc or line.
I did that, and if tolerance for converting polyline to arcs and lines is more than 2 or 3 it works :
[image]
@visose did show a way to do it, but it is a bit too simple.
See Arc Welder
Strangely the command “convert” in Rhino doesn’t output good result for zig zag polylines !
Hi Willem,
Would you mind sharing your script. I was just about to write my own, but thought I should make a search here before I put my mind to it.
Cheers
Hi,
I wish for a function to convert a curve to arc and line segments. Similar to the _Convert command with the option Output=Arcs.
Right now I think there’s only ToPolyline available from RhinoCommon.
Or do I miss a way to convert nurbs curves to arcs and lines?
Thanks,
Jess