BABYLON.MeshBuilder.ExtrudePolygon, give a positive depth but extrude along negative y axis direction, this is counterintuitive!
Welcome @11123 !!!
This is really hard to tell without a repro in the playground ?
You are correct - extrudePolygon uses an earlier method polygonMeshBuilder which also does this.
https://playground.babylonjs.com/#PTTMVI#315
https://playground.babylonjs.com/#4G18GY#267
It is not possible to change this because of backward compatibility.
Thanks for your guide, Babylonjs is a excellent 3d library, it seem aim to game dev. but my work is construct some house model in a simple way, so I need to operate the mesh data.
This is certainly possible and there are a number of examples of projects like this on https://www.babylonjs.com/, scroll down and click the more link.
Here is the start of one way https://doc.babylonjs.com/snippets/house_use.
There are many ways to do this from https://doc.babylonjs.com/features/position,_rotation,_scaling to https://doc.babylonjs.com/how_to/custom
All the best for your project.