Skip to content

Commit

Permalink
[fuseCut] Pick isnormal() from std namespace
Browse files Browse the repository at this point in the history
This fixes compile error due to isnormal() being not available in the
global namespace.
  • Loading branch information
p12tic committed Sep 17, 2022
1 parent 711edc2 commit f160515
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/aliceVision/fuseCut/DelaunayGraphCut.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
#include <boost/filesystem.hpp>
#include <boost/filesystem/operations.hpp>

#include <cmath>
#include <random>
#include <stdexcept>

Expand Down Expand Up @@ -1629,7 +1630,7 @@ DelaunayGraphCut::GeometryIntersection DelaunayGraphCut::rayIntersectTriangle(co
Point3d tempIntersectPt;
const Point2d triangleUv = getLineTriangleIntersectBarycCoords(&tempIntersectPt, A, B, C, &originPt, &DirVec);

if (!isnormal(tempIntersectPt.x) || !isnormal(tempIntersectPt.y) || !isnormal(tempIntersectPt.z))
if (!std::isnormal(tempIntersectPt.x) || !std::isnormal(tempIntersectPt.y) || !std::isnormal(tempIntersectPt.z))
{
// This is not suppose to happen in real life, we log a warning instead of raising an exeption if we face a border case
// ALICEVISION_LOG_WARNING("Invalid/notNormal intersection point found during rayIntersectTriangle.");
Expand Down

0 comments on commit f160515

Please sign in to comment.