How to extrude a polygon with holes along a curve?

MeshBuilder.ExtrudeShape supports for path but not for holes
(how_to/parametric_shapes#extruded-shapes)

MeshBuilder.ExtrudePolygon supports for holes and depth but not for path
(how_to/parametric_shapes#extruded-non-regular-polygon)

How to extrude a polygon with holes along a path, or to be more precise, a curve?

You can apply holes using CSG - Babylon.js Documentation

You create an alias mesh as the hole. Does require Earcut https://cdn.babylonjs.com/earcut.min.js but works very well for applying holes to any mesh.

I ran into same issue you are having and this was a easy workaround for me.

2 Likes