My question is similar to this one: https://community.safe.com/s/question/0D54Q000080hbnqSAA/extruding-building-heights-from-3d-terrain-model-creates-sloped-buildings and Takashi's answer helped me to progress.
However, in Takashi's answer, the z value of each vertex is the same (the minimum z value of the whole vertices) but I would like to keep the proper z value of each vertices and then extrude them with different elevation in order to keep a flat roof.
My idea is to extract each vertices of the building footprint and extrude them with their own elevation values.
- SurfaceDraper: Drape the polygon by the terrain surface.
- VertexExtractor:
- Calculate elevation of each vertices (building highest altitude minus z value)
- Extruder: vertical using the elevation calculated before
- Rebuild the 3D building geometry from those extruded vertices
My question then, is there a way to rebuild the 3D buildings from those extruded 3D points (that are now lines)?