Analyze polyline curves

I would like to analyze polyline curve in order to explode into sub curves/ lines according to curve radius interval
Curve example:

I want result to be sub subcuves arcs and lines separated:

Any Mathmatical hints? Take into consideration some curves do not have constant radius. (14.3 KB)

you could used my little tool in Nautilus plugin.

There is also a tool in Rhinocommon to transform in Line and Arcs, (24.4 KB)