-
Notifications
You must be signed in to change notification settings - Fork 285
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
Unexpected RectClip output #597
Comments
Small update: the spike is gone when rounding in GetIntersectPoint():
|
Another update: also fixed by sorting the input points of GetIntersectPoint/SegmentsIntersect since they seem to round differently if segments or segment points are swapped, and RectClip expects the intersect points to be identical. |
Change: Clipper2/CPP/Clipper2Lib/src/clipper.rectclip.cpp Lines 477 to 478 in 3867aab
to:
|
Fixed a minor bug in merging solution polygons (#606)
Hopefully fixed now. |
Thanks, works wonderfully now 👍 Also no longer seeing 1-point polygons in the output. |
I see an unexpected spike when clipping a long and narrow rectangle:
This outputs the following points:
Input rectangle in red (clipped to fit the screen) and result in black:
The size of the spike seems related to the size of the clipping rectangle somehow, any idea what is going on here?
The text was updated successfully, but these errors were encountered: