From 297a59db854413d97caf2eb4fca3cda19fed734a Mon Sep 17 00:00:00 2001
From: Marco Biasini <marco.biasini@unibas.ch>
Date: Fri, 18 Mar 2011 16:08:01 +0100
Subject: [PATCH] set EPSILON depending on precision of floating point numbers

---
 modules/geom/src/constants.hh | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/modules/geom/src/constants.hh b/modules/geom/src/constants.hh
index 5ef66e066..45b8b111e 100644
--- a/modules/geom/src/constants.hh
+++ b/modules/geom/src/constants.hh
@@ -22,7 +22,11 @@
 #include <ost/base.hh>
 namespace geom {
 
+#if OST_DOUBLE_PRECISION
 static const Real EPSILON=1e-10;
+#else
+static const Real EPSILON=1e-6;
+#endif
 
 } // ns
 
-- 
GitLab