Signed distance field computations for meshes