Detecting intersecting curves and deleting one of them

Hey there.
I created a bunch of curves, some of them are intersecting. As I need to avoid intersection I want to detect them and keep only one curve.
I thought about using distance component measuring the distance between points and then delete everything with the distance smaller than the diameter.

As I am pretty sure there are a trillion better ways to do it I´d be thankful for your help.

Ilija

Gradien_Schrafffur.gh (124.3 KB)

idk if thats what you are looking for, but here is a little script with anemone that can do something


Gradien_Schrafffur_edited by Dfytz_anemone.gh (134.8 KB)

Thank you for your help!!!