mesh-to-binvox
Converts a mesh into a binvox stream.
Example
//Load Stanford bunnyvar bunny = //Voxelize mesh and write to stdoutbunnycells bunnypositions 01
require("mesh-to-binvox")(cells, positions, resolution)
Converts a mesh to a binvox file and writes it to a stream.
cells
are the triangles of the meshpositions
are the vertices of the meshresolution
is the resolution of the binvox file to emit
Returns A through
stream representing a binvox file containing the mesh
Credits
(c) 2013 Mikola Lysenko. MIT License