njam / citygml-to-3dtiles

Convert from CityGML to Cesium 3D Tiles.
Apache License 2.0
160 stars 41 forks source link

Add "snap-to-ground" option #49

Open lmichaelis-fhg opened 3 months ago

lmichaelis-fhg commented 3 months ago

This patch adds an option which allows the user to specify that all geometry is to be snapped to the ground (i.e. height 0). This works by moving all coordinates down by the minimum height of position of the bounding box of the city object.

Note that this patch does not adjust the bounding box at all and only changes the positions of the vertices.