I need some help aligning the path segments with the geometry nodes

Hi everyone, can any of you help me get the path aligned like the example on the left?
My geometry node is meant for making pipes or tubes with different cross‑sections and then using the node together with Surface Psycho.

The path has marked edges and some vertices are used for the bevels, this way I can build the pipe pieces with various profiles in Blender and then import them into CAD software.

Thanks :slight_smile:

Blender File →

Align-edges.blend (1.4 MB)

You can sample curve normals before splitting and transferring them to the split curve:

Thank you for this solution, it solves me several problems, very kind, I will try and then tell you how it works..