add calculation for distance between boundary and element.