generate a three.js mesh from voxel data