We present a numerical method for computing the signed distance to a piecewise-smooth
surface defined as the zero set of a function. It is based on a marching method by
Kim (2001) and a hybrid discretization of first- and second-order discretizations of
the signed distance function equation. If the solution is smooth at a point and at all
of the points in the domain of dependence of that point, the solution is
second-order accurate; otherwise, the method is first-order accurate, and
computes the correct entropy solution in the presence of kinks in the initial
surface.
Keywords
eikonal, narrow band, Hamilton–Jacobi, signed distance
function