I want to draw cross section of terrain object. I am not able to get any support from anywhere... Any help from anyone is appreciated..
Thanks
I want to draw cross section of terrain object. I am not able to get any support from anywhere... Any help from anyone is appreciated..
Thanks
Hm, I’m not sure what you mean by a cross section of terrain, since the terrain is a single layer and not a dense solid that you can cut into.
This sandcastle example shows how a clipping plane cuts through terrain and lets you see what that would look like. Is that close to what you want?
Hi Jane Xu,
I want to draw longitudinal profile of terrain data.
Can u please go through the video: https://www.youtube.com/watch?v=o3rtjK7juUA&t=349s
This i what i want to express. Can u please give idea about implementation of it in cesium.
Thank you…
Hello!
Clipping planes seem like what you would want. Let me know if I missed what you want, but is it like what you would get if you pasted the following code into Sandcastle?
var viewer = new Cesium.Viewer(‘cesiumContainer’, {
skyAtmosphere: false,
terrainProvider: Cesium.createWorldTerrain()
});
var globe = viewer.scene.globe;
``
globe.clippingPlanes = new Cesium.ClippingPlaneCollection({ planes : [ new Cesium.ClippingPlane(new Cesium.Cartesian3( 1.0, 0.0, 0.0), 0.0), new Cesium.ClippingPlane(new Cesium.Cartesian3( 0.4, 0.3, 0.4), 0.0) ], edgeWidth: 1.0, edgeColor: Cesium.Color.WHITE, enabled : true });
Here’s a bit about clipping planes!