Is it possible to remove or slice out portions of a terrain?

My use case is rendering 3D infrastructure models (eg roads, highways) in Cesium.

Obviously a road model that sits at ground level can clip with an existing terrain dataset.

Is it possible at all with Cesium to slice out or remove sections of terrain (via polyline or some other method) such that I can integrate my replacement models with an existing terrain?

If not, has anyone else solved this problem via other methods? Most of the Cesium examples I've seen have involved simply displaying models on top of terrain. (eg box buildings) without any proper integration.

Hi there,

Unfortunately, this capability is not part of Cesium yet, but is on our roadmap (technically, it’s underground visualization but it could potentially be used to cut out for a specific rectangle as well). You can keep an eye on this issue: https://github.com/AnalyticalGraphicsInc/cesium/issues/4678.

There was a proof-of-concept plug-in that did this (https://github.com/NICTA/cesium-groundpush-plugin) but it hasn’t been updated in the last 2 years and is likely abandoned.

This probably doesn’t apply in your case, but in case you’d like to do masking with imagery layers, this method will work: https://groups.google.com/forum/?hl=en#!searchin/cesium-dev/imagery$20rectangle|sort:date/cesium-dev/Ac35kzLLX-I/_hyPWm2ZBQAJ

Best,

  • Rachel