Hi,
I want to create my own LOD2 model (based on another LOD2 model). The problem with the LOD2 I have is that the surface orientations are not correct (not outwards of buildings) and there is no logic in these errors (a solution could be determining an inner point and checking that the surface normal points away, but this does not work for building with a complex footprint). So, I have the roof polygons of the original LOD2 model as well as the minimal z-co of the building and I want to rebuild the building based on these. I labelled main volumes of buildings and extensions as separate buildings. So, one building has 1 roof shape, that consists of multiple roof polygons (often not planar). Sometimes, there are also small extensions in the roof (see picture). What I had in mind:
First, I use the surfacefootprintreplacer to project the roof surfaces to a horizontal plane that is at the height of the lowest roof eave. Let's say this represents the attic floor. From the attic floor, it is easy to extrude to the lowest z-co of the building (stored as an attribute). So, these walls are not the problem.
To construct the walls of the roof, I extrude the attic floor up and all of the individual roof polygons down. Then I use the clipper to determine the inside volume. This results in the correct geometry. But, now I'm stuck: there is an excess of walls in the 'attic'. I only need the walls or parts of the walls that are in contact with the outside, to get the correct building closure. I can't simply remove all vertical surfaces because some walls indeed need to be deleted as a whole, but if some part of the "wall" is in contact with the outside, then I need to keep that part of the wall (especially a problem around the small roof extensions). How do I determine this?
I hope there is some logic that I could not think of, but you could!! Already a big thanks!
Kind regards, Ina
Pictures of problem: there are 3 kinds of walls in the roof volumes:
Walls that need to be partially kept (only the part that is in contact with the outside)
Walls that need to be deleted completely (this is eg the wall under the roof edge, but is not in contact with the outside)
Walls that need to be kept completely (completely in contact with the outside)