How to orient a xy plane to a curve in order to rotate 3 curves?

Hi guys!

I currently have 3 curves that form a triangle and i want to rotate them so they become perpendicular to the long curve that appears through the triangles.

I tried rotating the planes or plane normal but im probably doing something wrong.

Thanks!

utdt_eaeu_tesis2019_modeloterritorial_cordonsituacion_paso a paso 07_cande.gh (86.8 KB)

Please show only what you need

Sorry… here it goes with a picture too of what I want to do. I wanna first allign the segments to the displaces axis so it forms a 90 degree. And then, rotate the segments as shown in the picture.

Thanks!

utdt_eaeu_tesis2019_modeloterritorial_cordonsituacion_paso a paso 08_cande.gh (69.0 KB)

I think you can make the definition more simple
try this or wait for better solution

orient curve.gh (23.5 KB)

Thanks Seghier! But i was actually trying to maintain the 9 branches that i started with from the beginning and not use the series component

Try to use your points ; this is just an example