"Failed to calculate opaque part of the surface"

Hello,

I’m running into some issues adding some glazings to a HBZone. A majority of the surfaces are added successfully (the yellow ones in the pic below), but a small group of them return the error “Failed to calculate opaque part of the surface. Glazing is removed from [solid geometry surface name]”. I know the surfaces are co-planar to the solid because the solid was created by extruding them and they fit within the solid’s surface because the window geometry is scaled down 5% before it is given to the grasshopper node.

Has anyone encountered this error before?

Geometry and Script:
Daylighting.gh (752.2 KB)
https://drive.google.com/file/d/1ECLmuMNl_6JoKNAHlncI2ZIr7kax100d/view?usp=sharing

My first guess, is it looks like you have overlapping surfaces. Try feeding just the outside surfaces of your windows to the script.

You can also bake all of your geometry to inspect what you have, and to see if there truly is one surface.

It also looks like some of your panels may not be planar. The overall surface looks fairly concave to me, and i’m getting the error in the image attached. I would rebuild the wall with planar surfaces or triangulate your panels to ensure that they’re all planar.