Draping geometry on Terrain

Hi,Is there a specific way that I need to draw a polygon or polyline on terrain.
Like following diagram

Thank.

Hi - see this discussion: https://groups.google.com/forum/#!topic/cesium-dev/fbJoxzUmKfI

Patrick