You can approximate curved lines with straight lines, and curved surfaces with planar surfaces (triangles are easiest because they are always planar). Windows can have 4 or 3 points, so if you have an irregular window, you have to break it up into triangles. In both cases, you're essentially meshing your geometry.
Marcus -- Marcus Jones, M.Sc., LEED®AP BD+C Freelance energy consultant Vienna, Austria