Script for convert curve to arcs and lines

You can now use Curve.ToArcsAndLines, see: