Cleaned up local point calculation and added signed distance field (not
functional yet).