How can i split a curve based on its curvature

Sometimes I have 3D curves that I want to split but at a specific discontinuity. Lets say at an angle different then the 160-200 degree range. So when tangeancy between 2 lines varie for an angle greater then X, mark a discontinuity.

Anyone as a clever quick way to do it?

I know Kangaroo can do it with polylines at 90 degree angle, but i want to do it with more control.

EDIT

I answer myself quicker then I thought. But if any component exist let me know!

In a mean time this does the job.

SplitCurveAtSpecicAngle_CC1.gh (159.9 KB)

CC