Create geometry on a surface's normal (Slanted Windows)

Hi,

I am hoping somebody can help me with what is missing from my script.

I am trying to created slanted windows on a massing. I isolated the surface, divided the surface’s domain, found the center of each domain, and then found the normal of that point. I then attached a rectangle to this but it is not normal to the surface.

Any help would be great!

Thanks in advance

Slanted Windows.gh (113.4 KB)

Frame is a plane

image

Wow, that was simple.

Thank you!