adWindFromPlane generator

I’m trying to create #geometrynodes windows generator
but until the last couldn’t fix the strange glass flickering - issue #1
and now stuck with curve-from-mesh (?) random direction on Blender 4 - issue #2.

Calling for help of the community!

The file has a description of the problems,
and the current state screenshot is also packed.

Here is X thread with some renders 'cause I can’t upload the images here…

Similar topic but solution seems doesn’t work on Blender 4 How tu unify curve direction in Geometry nodes

Special thanks to zeroskilz for Curve-To-Mesh with Even-Thickness Node-Group (Geometry Nodes, Blender 3.0)