cutting out a surface; think drawing windows in a house

Hi,

I want to draw a house with, not surprisingly, windows. Now, thinking the house simply as a rectangular prism, how should I cut out the surface for windows?

Thanks!!

Instead of drawing one quad for each wall imagine that you split each wall into 3x3 grid of quads. Now remove the middle quad and you’re done.

I have the same problem, but the window should be opened at random place on the wall, and the window size is random too. how to do?
thanks!

dynamically change the way you split the wall into a (irregular) grid.