# Donut: EllipseGeometryLibrary documentation

**URL:** <https://community.cesium.com/t/donut-ellipsegeometrylibrary-documentation/11532>\
**Category:** CesiumJS\
**Created:** [November 12, 2020, 12:11pm UTC](https://community.cesium.com/t/donut-ellipsegeometrylibrary-documentation/11532 "2020-11-12T12:11:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![TomPovey](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/tompovey/32/1987_2.png) [@TomPovey](https://community.cesium.com/u/TomPovey)\
**Post date:** [November 12, 2020, 12:11pm UTC](https://community.cesium.com/t/donut-ellipsegeometrylibrary-documentation/11532/1 "2020-11-12T12:11:27Z")

</div>

I’ve been creating a donut, like below using the EllipseGeometryLibrary as explained in this post: [How on earth do I draw a donut?](https://community.cesium.com/t/how-on-earth-do-i-draw-a-donut/4676) (granted it’s from 2016):  
 ![image](https://global.discourse-cdn.com/cesium/original/2X/a/a9e26ea81fbe8f927e880d1243d371407ab11b90.jpeg)

Although it works, I can’t find any documentation behind it. Are there plans to deprecate? If so, how can I achieve the same results?

Thanks,  
Tom

---

<div class="post-metadata">

**Author:** ![dzung](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/dzung/32/2996_2.png) [@dzung](https://community.cesium.com/u/dzung)\
**Post date:** [November 13, 2020, 5:59pm UTC](https://community.cesium.com/t/donut-ellipsegeometrylibrary-documentation/11532/2 "2020-11-13T17:59:56Z")

</div>

Hi Tom,

The EllipseGeometryLibrary is indeed no longer in the documentation. Currently there are no plans to deprecate, but there might be in the future.

You can draw polygons with holes in Cesium, as in this example: [https://sandcastle.cesium.com/?src=Polygon.html&label=All](https://sandcastle.cesium.com/?src=Polygon.html&label=All)

The code for the polygon with holes starts on line 65. The example is also in the [documentation for PolygonGeometry](https://cesium.com/docs/cesiumjs-ref-doc/PolygonGeometry.html?classFilter=polygon#PolygonGeometry). This is an example with a square polygon shape, but you can also apply the same logic to a circular shape to create the donut above.
