Profile Orientation Problem

Hello!

I have a set of lines that describe an ascending curve of beams.

To construct it, I have placed the profile of the beam at the height of the starting point of each segment.

Then I’ve tried to orient them according to the corresponding segment (perpendicularly), in order to make a sweep, but the alignment it´s not right. I need help with this issue.

As you can see, at the beginning looks kinda ok, but it’s not

…and by the end is evidently all wrong.

Thanks in advance.
Profile Orientation Problem.gh (27.2 KB)

orient_forum.gh (23.1 KB)
see if this points you to the right direction

Profile Orientation Problem_re.gh (27.7 KB)