From 6086fec85f42fd1e89684f908eb42e853ff50a89 Mon Sep 17 00:00:00 2001 From: Michael Jackson Date: Fri, 13 Sep 2019 08:51:24 -0400 Subject: [PATCH] Fix compile error that got left out on last merge Signed-off-by: Michael Jackson --- Source/OrientationLib/LaueOps/CubicOps.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Source/OrientationLib/LaueOps/CubicOps.cpp b/Source/OrientationLib/LaueOps/CubicOps.cpp index 10fe7776b7..b3ff6c6d6f 100644 --- a/Source/OrientationLib/LaueOps/CubicOps.cpp +++ b/Source/OrientationLib/LaueOps/CubicOps.cpp @@ -1561,7 +1561,7 @@ bool inUnitTriangleD(double eta, double chi) { chiMax = sqrt(1.0 / (2.0 + std::tan(eta) * std::tan(eta))); } - SIMPLibMath::boundD(chiMax, -1.0f, 1.0f); + SIMPLibMath::bound(chiMax, -1.0, 1.0); chiMax = acos(chiMax); return !(eta < 0.0 || eta > (45.0 * SIMPLib::Constants::k_PiOver180) || chi < 0.0 || chi > chiMax); } @@ -1639,10 +1639,8 @@ SIMPL::Rgb CubicOps::generateIPFColor(double phi1, double phi, double phi2, doub eta = std::atan2(p[1], p[0]); if(!inUnitTriangleD(eta, chi)) { - inUnitTriangleCounter++; continue; } - break; } double etaMin = 0.0;