-
-
Notifications
You must be signed in to change notification settings - Fork 862
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
[BUG] Polygon holes working incorrect in case of intersection and out of polygon coordinates #1917
Comments
Hi @Sid775, |
Hi @JaffaKetchup, Opacity Is not affects it, pretty the same problems. Also, on version 7.0.1 same code does not render holes at all: It's only help to use parameter |
Thanks for testing! I believe the reason holes aren't shown in v7.0.1 is because it requires the points to be in a certain winding direction. Can you try reversing the hole points? |
You are right, changing sequence of coordinates to this:
|
Requires reverification on v7.0.2. May be fixed by #1925. |
I believe this could be considered the correct behaviour, however it is not well documented and a little unexpected. If you need to manipulate polygons to merge them toegther, which should avoid holes cutting into each other, you can try using polybool. For now, I'm going to mark this as low priority. |
What is the bug?
My case is polygon with a lot of holes, it two corner case that I found, based on same problem in code, I believe, please correct me if I'm wrong and it working as designed.
First case: is when I try to make hole in polygon but coordinates of this hole places outside of polygon. I expect that hole in this case will be ignored but it appears part of polygon there.
Second case: is when I try to make holes in polygon that overlaps. I expect that holes will not affect each other or will merge but second hole create part of polygon in first hole.
How can we reproduce it?
To reproduce First case:
To reproduce Second case:
The text was updated successfully, but these errors were encountered: