removed M_PI_2 constant. (not more supported by vs2010 on)

This commit is contained in:
Paolo Cignoni 2013-07-03 21:12:08 +00:00
parent de332065d1
commit 1655f806df
1 changed files with 157 additions and 157 deletions

View File

@ -222,7 +222,7 @@ static void AccumulateLaplacianInfo(MeshType &m, SimpleTempData<typename MeshTyp
{ {
if(cotangentFlag) { if(cotangentFlag) {
float angle = Angle(fi->P1(j)-fi->P2(j),fi->P0(j)-fi->P2(j)); float angle = Angle(fi->P1(j)-fi->P2(j),fi->P0(j)-fi->P2(j));
weight = tan(M_PI_2 - angle); weight = tan((M_PI*0.5) - angle);
} }
TD[(*fi).V0(j)].sum+=(*fi).P1(j)*weight; TD[(*fi).V0(j)].sum+=(*fi).P1(j)*weight;