Mea culpa! The mesh is 2-manifold and not 2D-space. So even if a third vertex is far away (let us say P3) from P1, and P1 and P2 are relative close to each other (somewhere betwen 1x and 2x of average edge length) I can take the first equation to calculate P2_P1_P3 angle?
THX!