Added angle measuring function for a pos

This commit is contained in:
Paolo Cignoni 2017-03-15 13:13:51 +01:00
parent 6c8cba901d
commit c630e4064d
1 changed files with 9 additions and 1 deletions

View File

@ -333,6 +333,14 @@ public:
return face::IsManifold(*f,z);
}
/*!
* Returns the angle (in radiant) between the two edges incident on V.
*/
ScalarType AngleRad() const
{
return Angle(f->V(f->Prev(z))->cP()-v->cP(), f->V(f->Next(z))->cP()-v->cP());
}
/*!
* Returns the number of vertices incident on the vertex pos is currently pointing to.
*/