This is a
playground to test code. It runs a full
Node.js environment and already has all of
npm’s 400,000 packages pre-installed, including
ao-mesher with all
npm packages installed. Try it out:
This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.
A voxel mesher for ndarrays that handles ambient occlusion and transparency.
npm install ao-mesher
Constructs a mesh for
arrayis a 3D ndarray of voxels
Returns A uint8array encoding the mesh, or else null if there were no facets. This is in the same format that
(c) 2013 Mikola Lysenko. MIT License