From eb021e8879df4efed5229afd0c6fea7e420f1f1f Mon Sep 17 00:00:00 2001 From: Karsten Rink <karsten.rink@ufz.de> Date: Thu, 16 Oct 2014 12:12:32 +0200 Subject: [PATCH] adjusted switch case for algorithm selection --- GeoLib/AnalyticalGeometry.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/GeoLib/AnalyticalGeometry.cpp b/GeoLib/AnalyticalGeometry.cpp index 7f216b9b18f..a5d9f28d1cc 100644 --- a/GeoLib/AnalyticalGeometry.cpp +++ b/GeoLib/AnalyticalGeometry.cpp @@ -21,6 +21,8 @@ #include <limits> #include <list> +#include "logog/include/logog.hpp" + // BaseLib #include "quicksort.h" @@ -205,12 +207,14 @@ bool isPointInTriangle(GeoLib::Point const& p, { switch (algorithm) { + case GeoLib::GAUSS: + return gaussPointInTriangle(p, a, b, c, eps_pnt_out_of_plane, eps_pnt_out_of_tri); case GeoLib::BARYCENTRIC: return barycentricPointInTriangle(p, a, b, c, eps_pnt_out_of_plane, eps_pnt_out_of_tri); default: - return gaussPointInTriangle(p, a, b, c, eps_pnt_out_of_plane, eps_pnt_out_of_tri); + ERR ("Selected algorithm for point in triangle testing not found, falling back on default."); } - return false; + return gaussPointInTriangle(p, a, b, c, eps_pnt_out_of_plane, eps_pnt_out_of_tri); } bool gaussPointInTriangle(GeoLib::Point const& q, -- GitLab