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.
CurveAnalysis.gh (14.3 KB)

Hello
you could used my little tool in Nautilus plugin.


There is also a tool in Rhinocommon to transform in Line and Arcs,
https://developer.rhino3d.com/api/rhinocommon/rhino.geometry.curve/toarcsandlines


CurveAnalysis.gh (24.4 KB)