How to make the rectangles parallel to the lines of the structure?

How to make the rectangles parallel to the lines of the structure (as shown in the image)?

![Captura de ecrã 2024-08-10 163347|690x335]
(upload://vpJLug1cFxyUjcmpGKx57WbydE8.png)
Grasshopper_Oc (4).gh (13.7 KB)

You can’t put a return key in the image link.

Thank you :))