Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix edge approximation ignoring vertices #1028

Merged
merged 2 commits into from
Sep 1, 2022
Merged

Fix edge approximation ignoring vertices #1028

merged 2 commits into from
Sep 1, 2022

Conversation

hannobraun
Copy link
Owner

See message of last commit for details.

The only purpose of this change, is to make a following change smaller.
The edge approximation code ignored all edge vertices when computing the
range that the curve should be approximated in. Instead, it was using
the fallback code for continuous (vertex-less) edges in every case.

This happened to work, because all the edges this approximation code was
seeing had `zero` as the local coordinate of their first vertex, which
happened to line up with the computed fallback value.

I've been making changes to the sweep algorithm (not in this branch)
that made this no longer be true, and this bug was triggered.
@hannobraun hannobraun enabled auto-merge September 1, 2022 16:21
@hannobraun hannobraun merged commit 57b3d64 into main Sep 1, 2022
@hannobraun hannobraun deleted the approx branch September 1, 2022 16:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant