Convert a bspline on a set of arcs of circle and segments

I need to convert a 2D bspline curve into a set of circular arcs and straight segments (numerical cutting machine format), do you have any tip?

Thank you very much.

Dmitry's picture

Take a look at Geom2dConvert_BSplineCurveKnotSplitting class.