consistent version, really verbose. but plane distance is DOLFIN_EPS exact