Compare fraction instead of id

This commit is contained in:
Andreas Fabri 2024-12-11 12:44:11 +00:00
parent 4deb462d1c
commit 13b66b6b88
1 changed files with 2 additions and 2 deletions

View File

@ -1095,8 +1095,8 @@ CPoint<C> FrechetLight<C>::getLastReachablePoint(Curve const& curve1, PointID i,
auto interval = getInterval(curve1, i, curve2, cur);
// interval is full, so continue
if (interval.end == 1) {
assert(interval.begin == 0);
if (is_one(interval.end.getFraction())) {
assert(is_zero(interval.begin.getFraction()));
++cur;
stepsize *= 2;
}