Converts meshes into voxels