From 70c5a48fe40bee67c750997cec0933c17b71add3 Mon Sep 17 00:00:00 2001 From: Sylvain Thery Date: Thu, 28 May 2015 17:59:39 +0200 Subject: [PATCH] abs error --- CGoGN/include/Algo/Geometry/inclusion.hpp | 2 +- CGoGN/include/Geometry/intersection.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CGoGN/include/Algo/Geometry/inclusion.hpp b/CGoGN/include/Algo/Geometry/inclusion.hpp index c7edab2be..a4d667f7c 100644 --- a/CGoGN/include/Algo/Geometry/inclusion.hpp +++ b/CGoGN/include/Algo/Geometry/inclusion.hpp @@ -270,7 +270,7 @@ bool isPointOnHalfEdge(typename PFP::MAP& map, Dart d, const VertexAttribute diff --git a/CGoGN/include/Geometry/intersection.hpp b/CGoGN/include/Geometry/intersection.hpp index 661807cc0..a15cceb2e 100644 --- a/CGoGN/include/Geometry/intersection.hpp +++ b/CGoGN/include/Geometry/intersection.hpp @@ -504,7 +504,7 @@ Intersection intersectionSegmentPlan(const VEC3& PA, const VEC3& PB, const VEC3& typename VEC3::DATA_TYPE panp = NormP * (PA-PlaneP); typename VEC3::DATA_TYPE pbnp = NormP * (PB-PlaneP); - if(abs(panp) < EPSILON || abs(pbnp) < EPSILON) + if(std::abs(panp) < EPSILON || std::abs(pbnp) < EPSILON) return VERTEX_INTERSECTION; // else if((panp < 0 && pbnp > 0) || (panp > 0 && pbnp < 0)) else if (panp*pbnp < 0) -- GitLab