cesium_dev_kit adds terrain editing by overlaying a deformable Three.js mesh
Cesium's terrainProvider is read-only, so cesium_dev_kit's terrain editing instead samples real terrain and overlays a local Three.js mesh that is deformed. The kit supports brush modes such as lower, raise, flatten and smooth, plus polygon-based operations like sinking an area to a set depth with stepped edges and a water level. Edited results are returned as serializable data via exportData(), which can be saved to a server and restored with importData(). Raw height values are available through getHeightField(), which compares current and base heights to show cuts and fills. The export size depends on grid segments, with 160 segments producing roughly 277KB of base64-encoded data.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in