dihedral angle computation of tetrahedron facets; flip surface facets