Hey,
my code creates a building with a roof and windows.
All lines are being drawn with SingleLineGeometry.
The pure building is being created with an ExtrudeGeometry, which uses floorpoints as a Shape.
The Roof is being created by 4 roofpoints and 2 additional points that are the roof ridge.
It also is being painted by iterating over the Shape Geometries faces and adding the material to every face of the roof.
I wanted to do the same thing for the windows so that they have colour as well but somehow it does not work.
Here is a jsfiddle: https://jsfiddle.net/dash1/oystuv60/117/
relevant lines for the windows are from 265 to 290.
It is also worth mentioning that the Geometry.faces.length of the roof shapes are 4 and 3 as they should be but the ones of the windows are always 0.
Hopefully someone can help me.
Thanks in advance