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

Here’s my PG : 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,


Irregular Polygon Extrusion | Babylon.js Documentation (babylonjs.com)

I tried with your method but i does not work either

My new PG : https://playground.babylonjs.com/#9Q2YU5#17

Thanks for your help…

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

1 Like