finally add generic solution to the calculation of penetration distance on face s edges