There is a wrap param for ExtrudePolygon function in the playground, I update my babylonjs version accord to it. But I am developing with typescript and use babylon.module.d.ts! It seem as the type declaration file of babylonjs has not update to the newest version.
It’s a mistake by who did the PG: this parameter is not taken into account (or maybe wrap did exist some time ago and has been removed since then, I don’t know).
You are correct!, I didn’t notice that. By the way, I still think the MeshBuilder.ExtrudePolygon should have this option due to the playground exactly do!
This is a bug, the wrap option should be in MeshBuilder.ExtrudePolygon. Since MeshBuilder.ExtrudePolygon calls PolygonBuilder.ExtrudePolygon the option is being passed somehow. Will have a look tomorrow.
Javascript does take this option property into account as it is happy to add properties to an object on the fly. So that when MeshBuilder.ExtrudePolygon calls PolygonBuilder.ExtrudePolygon it is picked up by PolygonBuilder.ExtrudePolygon. Typescript, of course, objects to the lack of declaration. Missing it out in MeshBuilder.ExtrudePolygon was the mistake.