Panel rotation along axis

Good morning, I am paneling a facade with constrained panels on the upper side that move with the wind. I can’t select only the axis of rotation (the top edge) but it selects me sometimes vertical edges, sometimes horizontal ones and sometimes oblique ones. I am following a tutorial but to me it selects the edges a bit randomly.

Thank you very much

This is the tutorial:

Could you post your Grasshopper definition so people can take a look at what you’ve done so far?

Of course, here is the .gh file!
National Pavilion of (58.3 KB)