# Cut ellipse to terrain

**URL:** <https://community.cesium.com/t/cut-ellipse-to-terrain/17910>\
**Category:** CesiumJS\
**Created:** [March 29, 2022, 7:05am UTC](https://community.cesium.com/t/cut-ellipse-to-terrain/17910 "2022-03-29T07:05:13Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Jacky](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/jacky/32/7686_2.png) [@Jacky](https://community.cesium.com/u/Jacky)\
**Post date:** [March 30, 2022, 10:54am UTC](https://community.cesium.com/t/cut-ellipse-to-terrain/17910/2 "2022-03-30T10:54:32Z")

</div>

Hi,  
You can use [depthFailMaterial](https://cesium.com/learn/cesiumjs/ref-doc/PolylineGraphics.html#depthFailMaterial) to set color of lines under terrain. Also you can check this [post](https://community.cesium.com/t/poyline-through-mountain-under-terrain/17245/5). You can use it’s logic and create multiple lines between the radius and arc. You can set depthFailMaterial with a transparent color or Alpha 0.

- Regards

---

_[View the full topic](https://community.cesium.com/t/cut-ellipse-to-terrain/17910)._
