From 952b0f658b793667dd5ffd5ec483e8ab227bfa0d Mon Sep 17 00:00:00 2001 From: matsu Date: Tue, 15 Nov 2022 19:08:57 +0800 Subject: [PATCH] change equals stricter so that less clusters are made --- .../geometry/algorithms/detail/overlay/get_clusters.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/boost/geometry/algorithms/detail/overlay/get_clusters.hpp b/include/boost/geometry/algorithms/detail/overlay/get_clusters.hpp index bb6077ad8c..971cc7b6a9 100644 --- a/include/boost/geometry/algorithms/detail/overlay/get_clusters.hpp +++ b/include/boost/geometry/algorithms/detail/overlay/get_clusters.hpp @@ -38,17 +38,17 @@ struct sweep_equal_policy template static inline bool equals(P const& p1, P const& p2) { - // Points within a kilo epsilon are considered as equal + // Points within a epsilon are considered as equal using coor_t = typename coordinate_type

::type; - return approximately_equals(p1, p2, coor_t(1000)); + return approximately_equals(p1, p2, coor_t(1)); } template static inline bool exceeds(T value) { // This threshold is an arbitrary value - // as long as it is than the used kilo-epsilon - T const limit = T(1) / T(1000); + // as long as it is than the used epsilon + T const limit = T(1) / T(1); return value > limit; } };