Wrong variable type

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@877 fdac6126-5c0c-442c-9429-916003d36597
This commit is contained in:
Jan Möbius
2013-07-24 11:31:18 +00:00
parent 765e3ffa9e
commit ff66925127

View File

@@ -279,7 +279,7 @@ private:
#endif
if (++valence)
{
real_t alpha = (4.0-2.0*cos(2.0*M_PI / (double)valence))/9.0;
real_t alpha = (4.0-2.0*cos(2.0*M_PI / real_t(valence)) )/9.0;
return weight_t( real_t(1)-alpha, alpha/real_t(valence) );
}
return weight_t(real_t(0.0), real_t(0.0) );