Resample a mesh with uniform spacing