1. A method of generating a mesh, comprising: locating a reference voxel, the reference voxel being inside a surface of an object and being adjacent to at least one voxel outside the surface; for a voxel outside the surface adjacent to the reference voxel, determining a set of contributing voxels by finding adjacent voxels on the same surface as the reference voxel using morph operators; and forming triangles with adjacent contributing voxels and the reference voxel, each triangle having unique directional edges with respect to the other triangles.