Converts a mesh to a binvox stream
Converts a mesh into a binvox stream.
//Load Stanford bunnyvar bunny =//Voxelize mesh and write to stdoutbunnycells bunnypositions 01
Converts a mesh to a binvox file and writes it to a stream.
cellsare the triangles of the mesh
positionsare the vertices of the mesh
resolutionis the resolution of the binvox file to emit
through stream representing a binvox file containing the mesh
(c) 2013 Mikola Lysenko. MIT License