Rebuilding curves by intersection points

Hello, I am trying to rebuild a set of curves based on the intersection points between each curve. I have a data tree with two branches, both corresponding to a layer of the structure I am creating. I have created the structure using the collision solver of Kangaroo, but because of the need of a radius, I do not have clear intersection points yet. I already have shattered the curves at the closest location of the intersection via curve proximity and shatter, but now I would like to rebuild each curve so that the intersection points are equal for each intersection.

This feels like a very simple problem to solve. However, I have not managed to solve this yet and could not find a direct solution online. Is there someone who could help me out with this simple issue? I have attached a part of my script, in which I show what I have previously tried to rebuild the curves.

Thanks in advance!

find intersection points.gh (30.4 KB)

Happy to have a look, could you provide an example script without plugin- components. The treeleaf-like icon component is not accepted by my system.

Regards, Eef