A fast and practical method to pack spheres for mesh generation