-
Notifications
You must be signed in to change notification settings - Fork 57
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
Spurious points in the corner polygon #88
Comments
So, eliminate successive collinear points, the same way we eliminate coincident points to fix #42? My guess is that this probably isn’t worth the additional computational effort. |
Filtering out collinear points should be very fast so it likely won't add much overhead. And it only happens on cells near the border right? |
I seem to find them only at the corners. |
Here's an explorable notebook that seems to confirm it's only the corners: The filter I have works for what I was looking for, but maybe the situation can be prevented earlier. |
@Fil if it's only for the corners, you could replace orientation test with a much simpler check since edges are axis-aligned ( |
This is not a graphic error, as the points are aligned, but topologically it could be nice (?) to avoid them, as we did in #83 to avoid repeated points.
In the following example the cell for point 0 has 6 different points, when 4 would be enough (discounting the last one which closes the path).
https://observablehq.com/d/5c76273688ee3fc9
The text was updated successfully, but these errors were encountered: