Changed DihedralAngleRad to do not use precomputed per face normal (it already did for part of the computations)

This commit is contained in:
Paolo Cignoni 2016-04-02 05:47:20 +00:00
parent 9720d0c5a6
commit a989737e26
1 changed files with 1 additions and 1 deletions

View File

@ -106,7 +106,7 @@ inline typename FaceType::ScalarType DihedralAngleRad(FaceType & f, const int i
if(fabs(dist01) > fabs(dist10)) sign = dist01;
else sign=dist10;
ScalarType angleRad=Angle(f0->N(),f1->N());
ScalarType angleRad=AngleN(n0,n1);
if(sign > 0 ) return angleRad;
else return -angleRad;