Axes flips after trimming hole in surface

My brick script work fine as long as I set surfaces with trimmed holes(windows). Whenever I referenca a plane without holes, the axes seem to flip. I’m using deconstruct plane to get the vectors for each brick.


Brick wall.gh (59.0 KB)

I opened your file in R8 SR4 (8.4.24037.15001, 2024-02-06 Windows) and this is what I see:

but I get this on R7 SR37 (7.37.24004.15001, 2024-01-04 Windows):

I’d suggest, when you want to extract the plane on which a planar surface lies, to not cast the surface as a plane, but use the dedicate component Is Surface Planar to do that:

doing so, it becomes like this:

and seems to be working correctly also on R7

Brick wall_inno.gh (48.6 KB)

Thank you so much! You saved my day.