# I can't manage to create a hole in a polygon

**URL:** https://forum.babylonjs.com/t/i-cant-manage-to-create-a-hole-in-a-polygon/36953
**Category:** Questions
**Created:** [December 28, 2022, 7:24pm UTC](https://forum.babylonjs.com/t/i-cant-manage-to-create-a-hole-in-a-polygon/36953 "2022-12-28T19:24:33Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![bvaisman](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/bvaisman/32/20835_2.png) [@bvaisman](https://forum.babylonjs.com/u/bvaisman)
#### Post date: [December 28, 2022, 7:24pm UTC](https://forum.babylonjs.com/t/i-cant-manage-to-create-a-hole-in-a-polygon/36953/1 "2022-12-28T19:24:33Z")

</div>

Here’s my PG : [https://playground.babylonjs.com/#9Q2YU5#16](https://playground.babylonjs.com/#9Q2YU5#16)

When i click on the green box and move it on my polygon, i want to create a hole at its place and it does not work because i can’t see the sphere under the polygon

I’m sure there’s a mistake but i don’t know where.

If anybody could help.

Thanks in advance,

Boris

---

<div class="post-metadata">

### Author: ![Happy0Ending](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/happy0ending/32/26835_2.png) [@Happy0Ending](https://forum.babylonjs.com/u/Happy0Ending)
#### Post date: [December 29, 2022, 2:14am UTC](https://forum.babylonjs.com/t/i-cant-manage-to-create-a-hole-in-a-polygon/36953/2 "2022-12-29T02:14:30Z")

</div>

[Irregular Polygon Extrusion | Babylon.js Documentation (babylonjs.com)](https://doc.babylonjs.com/features/featuresDeepDive/mesh/creation/param/extrude_polygon)

---

<div class="post-metadata">

### Author: ![bvaisman](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/bvaisman/32/20835_2.png) [@bvaisman](https://forum.babylonjs.com/u/bvaisman)
#### Post date: [December 29, 2022, 10:28am UTC](https://forum.babylonjs.com/t/i-cant-manage-to-create-a-hole-in-a-polygon/36953/3 "2022-12-29T10:28:52Z")

</div>

I tried with your method but i does not work either

My new PG : [https://playground.babylonjs.com/#9Q2YU5#17](https://playground.babylonjs.com/#9Q2YU5#17)

Thanks for your help…

---

<div class="post-metadata">

### Author: ![bvaisman](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/bvaisman/32/20835_2.png) [@bvaisman](https://forum.babylonjs.com/u/bvaisman)
#### Post date: [December 29, 2022, 12:13pm UTC](https://forum.babylonjs.com/t/i-cant-manage-to-create-a-hole-in-a-polygon/36953/4 "2022-12-29T12:13:03Z")

</div>

I’ve found my mistake, the polygon created with BABYLON.MeshBuilder.ExtrudePolygon is not updatable.

it has to be disposed before creating another one.

My updated PG : [https://playground.babylonjs.com/#9Q2YU5#19](https://playground.babylonjs.com/#9Q2YU5#19)
