Hi!
I'm working on a web app for displaying simple buildings in 3d terrain. I want to cut into the terrain so it roughly shows how much of the ground needs to be excavated to be able to place the building (a given polygon) at a given altitude.
What would be the best way of doing this?
I'm currently using WorldElevation3D for setting the ElevationLayer in the map, rendering with SceneView.
Placing the buildings at an elevation works fine.
I saw some place that I could copy the elevation layer for the given polygon and flatten it at the elevation and put it first in the ground layers array to give it higher preference. But I'm not entirely sure how to go about doing the flattening, and will that preserve a vertical wall behind the cut out volume?
Are there any other way that is better?