Normalise the level-set function phi. This gets rid of values that are exactly zero, by ensuring that each entry of the changed level-set function has a magnitude of at least h * zerotol. The actual level-set geometry is not changed, except possibly the approximated intersections between the zero level-set and grid edges due to slight variations in the actual values of phi.
Exactly zero values are interpreted according to their sign bit if the
signbit
function is available (on newer versions of GNU Octave).
If the function is not available, then zeros are assumed to be
not part of the level-set domain.
See also: ls_inside.
Package: level-set