How to place a polylinevolume on terrain

Hi,

I was place polylinevolume on terrain the polyline is going underground.its very important for me please suggest me.

Thanks,
Rama

Hey Rama,

It looks like clamping to ground isn’t supported for polyline volumes at the moment. One thing you might try is to sample the terrain heights yourself (select “sample line positions” in this example) and then you can use those positions for your Polyline Volume, and perhaps push the height a bit upwards depending on how thick the volume you’re creating is.

Let me know if that helps! What kind of application are you creating?

Hi,

I tried your approach but I'm facing challenges when the terrain is not regular and there are some elevations in between two position.Please suggest me

Thanks,
Rama

Can you please provide a Sandcastle example or a screenshot of the issue you’re seeing? Also, for anyone else looking at this, looks like the Sandcastle example was moving to: https://cesiumjs.org/Cesium/Build/Apps/Sandcastle/?src=Clamp%20to%20Terrain.html

One way to get more accuracy on irregular terrain is to increase the samples you’re taking.