Rotate flat multifaceted panels on the largest side

Hello Guys

please tell me how you can rotate flat surfaces, so that the longest side is parallel to the X axis

how to find the longest side i know

rotate panel.gh (7.3 KB) panel rotate.3dm (257.9 KB)

Something like this?


rotate panel_re.gh (20.5 KB)

1 Like

HS_Kim Thank you for your help rays of gratitude !!!
you really helped