Sequential trim list of curves

Hello to all,
I have searched a lot but I can’t find a solution to my problem.
I would like to separate a sequence of curves when they overlap. I can get the beginning of my principle to illustrate it but I would like to automate it and thus create a sequence. The principle is that curve N1 trim curve N2, N2 trim N3, N3 trim N4 etc
Thanks for your help

overlaping_trim_sequence.gh (18.9 KB)

the “head” part I took from your definition as it is :slight_smile:


overlaping_trim_sequence_Re.gh (16.9 KB)

Your script have duplicated circles

overlaping_trim_sequence.gh (11.6 KB)

Thank you very much for your time!
But I would like this definition to be applicable to any sequence of curves from contours and not a sequence of circles.

As with this more complex contour, I would like to be able to hide the parts that overlap with the N-1 curve.
The idea is to create a 3d object viewer on a single plane from the contour.
contour.pdf (647.6 KB)