# Updating PolygonHierarchy using ConstantProperty failed to render successfully

**URL:** <https://community.cesium.com/t/updating-polygonhierarchy-using-constantproperty-failed-to-render-successfully/26987>\
**Category:** CesiumJS\
**Created:** [September 26, 2023, 9:04am UTC](https://community.cesium.com/t/updating-polygonhierarchy-using-constantproperty-failed-to-render-successfully/26987 "2023-09-26T09:04:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![c15137418732](https://avatars.discourse-cdn.com/v4/letter/c/5e9695/32.png) [@c15137418732](https://community.cesium.com/u/c15137418732)\
**Post date:** [September 26, 2023, 9:04am UTC](https://community.cesium.com/t/updating-polygonhierarchy-using-constantproperty-failed-to-render-successfully/26987/1 "2023-09-26T09:04:54Z")

</div>

Updating PolygonHierarchy using ConstantProperty failed to render successfully  
This is a sandcastle link:  
[[Cesium Sandcastle](https://sandcastle.cesium.com/#c=1VLfa8IwEP5Xjj5VcKmujIF2sqF7G0zc2Muyh9ieGpYmckmVOvzfl9Y6f0z2Pgghd9/3XXJfLjXaOlhJXCPBHWhcwxCtLHL2VudCHqR1PDTaCamReNDqc811WisJs7FR5dxor96VYaiddBItE1kWfnENoEWOPeDBBDNYNnS/bEEzkSIP2hWpAXpQSwAWEklQuih7+ycNBTl/EjpmMzL5COeEaB+IRBm+70QAV93uDeu092F8exScY9cnWOeYGsen2DE17v6BHS74aDWHXDgkKdShEaMMscnjqCZs/b7dmXqwkzV2sB8bTr9nWNkvtBuTWSK5MuT6v7rEdavqvZmejTH5qwnPZqnVh6AdJNaVCgf7KvcyXxpyUJAKGYsc5kvlrbbRtEg/0bHU2srWippEx9IkkyuQ2d2F4YZUCWs9MiuUepEbP52DJPL8X1JlRCb1/HmFpERZ0RbdwdMuyRhLIh9eVjpj1FTQWeVv)]([https://sandcastle](https://sandcastle) lik)

Due to the need to update the polygon based on some complex logic, I cannot use CallbackProperty

---

<div class="post-metadata">

**Author:** ![Gabby\_Getz](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/gabby_getz/32/7838_2.png) [@Gabby\_Getz](https://community.cesium.com/u/Gabby_Getz)\
**Post date:** [September 29, 2023, 1:59pm UTC](https://community.cesium.com/t/updating-polygonhierarchy-using-constantproperty-failed-to-render-successfully/26987/2 "2023-09-29T13:59:31Z")

</div>

Hi,

See [the Drawing on Terrain Sandcastle example](https://sandcastle.cesium.com/?src=Drawing%20on%20Terrain.html) for how to implement computed polygon hierarchies.
