Adding first signed distance function method.