Commit e3294fae authored by Jan Möbius's avatar Jan Möbius

Try to fix sqrt float conversion

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@879 fdac6126-5c0c-442c-9429-916003d36597
parent 6d04e560
......@@ -279,7 +279,7 @@ private:
#endif
if (++valence)
{
real_t alpha = (4.0-2.0*cos(2.0*M_PI / real_t(valence)) )/9.0;
real_t alpha = real_t( (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) );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment