ThinInstanceSetBuffer stopping the render of source geometry

I’m coding a voxel generating test and everything works but when it runs the code bellow:

		posi, positionNumComponents);

It doesn’t render anything but the edge rendering of the mesh.
My Babylon.js playground is:

The code is from Three.js so that might have a play in this bug I found but I thought I converted the buffer Geometry properly.

Welcome aboard!

You don’t need thin instances for this, as you generate the positions + normals + indices.

You just have to update the corresponding vertex buffers of an existing mesh:

Note that I had to invert the winding of the faces, I think Threejs uses a right-handed coordinate system while we are using a left-handed one (see lines 106-107).