Distance Field Generator - to be finished