Fix for older compilers
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@8167 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: ad1572438cb7e5d9315ae281fababda9b5f0caa7 Former-commit-id: 426902ce5e56034701677be94495282587fc501b
This commit is contained in:
parent
755966f19c
commit
9f8cb672d2
1 changed files with 1 additions and 1 deletions
|
@ -461,7 +461,7 @@ int computeNorm(const point_t &pv1, const point_t &pv2, const point_t &pv3, poin
|
|||
norm.y = (p3 * q1 - q3 * p1) / dd;
|
||||
norm.z = (p1 * q2 - q1 * p2) / dd;
|
||||
|
||||
if (std::isnan(norm.x) || std::isnan(norm.y) || std::isnan(norm.z))
|
||||
if (isnan(norm.x) || isnan(norm.y) || isnan(norm.z))
|
||||
{
|
||||
norm.set(0.0, 1.0, 0.0);
|
||||
return 0;
|
||||
|
|
Loading…
Reference in a new issue