A method of generating a pre-mesh includes locating a reference voxel,
which is inside a surface of an object and is adjacent to a voxel outside
the surface of the object. The method also includes determining a set of
contributing voxels by finding adjacent voxels on a same surface as the
reference voxel using voxel morph operators, averaging centers of each of
the contributing voxels and the reference voxel, and using the average of
the centers as a new center of the reference voxel.