Skip to content

Commit

Permalink
change equals stricter so that less clusters are made
Browse files Browse the repository at this point in the history
  • Loading branch information
Mitsuhiko-Matsukawa committed Nov 15, 2022
1 parent 56332e9 commit 952b0f6
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,17 @@ struct sweep_equal_policy
template <typename P>
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<P>::type;
return approximately_equals(p1, p2, coor_t(1000));
return approximately_equals(p1, p2, coor_t(1));
}

template <typename T>
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;
}
};
Expand Down

0 comments on commit 952b0f6

Please sign in to comment.