A classical re-initialization method for level set function Overview This is a python implementation of the Sussman's re-initialization method, in which 3D version is added. Referance A Level Set Approach for Computing Solutions to Incompressible Two-Phase Flow, Mark Sussman, Peter Smereka, Stanley Osher, Journal of Computational Physics, Volume 114, Issue 1, 1994, Pages 146-159. Example Test image (491 x 761) Result Test in 2D SDF mode for stacked patches (245 x 253 x 6) Test in 3D SDF mode to an ellipsoid (128 x 96 x 15)