removed M_PI_2 constant. (not more supported by vs2010 on)
This commit is contained in:
parent
de332065d1
commit
1655f806df
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue