Converts a mesh to a binvox stream