Basically I'm trying to extrude a shape on the Y axis. All of the points have a Y of 0, only the X and Z are differing each time.
When you're looking at the picture, you can see the white lines are the points connected by BABYLON.MeshBuilder.CreateLines, so the points shouldn't be the problem. However, if you are looking at that big grey thing going in the air, that's the extruded shape from the points. It seems that it doesn't extrude properly on the Y axis so it's really messed up.
The code looks like this:
BABYLON.MeshBuilder.CreateLines("line", { points: meshPoints }, scene); var block = BABYLON.MeshBuilder.ExtrudeShape("block", { shape: meshPoints, path: [new BABYLON.Vector3(0, -1, 0), new BABYLON.Vector3(0, 0, 0)], scale: 1, cap: BABYLON.Mesh.CAP_ALL }, scene);
As you can see, I just want it to be extruded from the bottom to the top, which should result in a box which follows the mesh points. It should look like the white lines, but then filled up and having a "height" to it.