Is there a way to recognize if a node in the model has holes?
For example, we want to know if there's a window in a wall or some other opening, and how many such openings and their location.
I tried to iterate over the polygons of the node, taking their centroid and normal and trying to find a discontinuity, but it doesn't give a high confidence result.
Also tried to count straight lines other than the ones at the edges but sometimes a straight line appears in the middle of a wall.
So is there another way to do this? Maybe there's a built-in function in Three.js to count edges of a mesh?