how to draw a geometry that flat on terrain?

is there any way to draw geometry(polyline or polygon) that flat on terrain ? like kml’s altitudemode .how to draw a polygon in globe like the above picture1?

Cesium doesn’t have support for this yet, but keep an eye on #2172.

If you need a workaround sooner, search this forum for some ideas as it has been discussed before.

Patrick