dist_to_boundary function

dist_to_boundary