Hi, I created a custom mesh:
var customMesh = new BABYLON.Mesh("custom", scene);
var positions = [-5, 2, -3, -7, -2, -3, -3, -2, -3, 5, 2, 3, 7, -2, 3, 3, -2, 3];
var indices = [0, 1, 2, 3, 4, 5];
var vertexData = new BABYLON.VertexData();
vertexData.positions = positions;
vertexData.indices = indices;
vertexData.applyTo(mesh)
But position values are not correct, I need to use offset and stride.
I see VertexBuffer can do that.
So how to use VertexBuffer with Float32Array and apply it to VertexData.positions ?