How to draw cross section of Terrain Data

142 views
Skip to first unread message

dharavat...@gmail.com

unread,
Jul 13, 2018, 7:01:55 AM7/13/18
to cesium-dev

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


Jane Xu

unread,
Jul 13, 2018, 5:04:32 PM7/13/18
to cesium-dev
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?

dharavath mohan

unread,
Jul 16, 2018, 12:33:56 AM7/16/18
to cesiu...@googlegroups.com
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..

--
You received this message because you are subscribed to a topic in the Google Groups "cesium-dev" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/cesium-dev/GVnJWgFHvZI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cesium-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jane Xu

unread,
Jul 16, 2018, 5:32:40 PM7/16/18
to cesium-dev
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!
To unsubscribe from this group and all its topics, send an email to cesium-dev+...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages