-
Notifications
You must be signed in to change notification settings - Fork 298
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
Incorrect Hierarchy in PolyTree Union Results #942
Comments
👍👍
I'll investigate (and your post is a great example of how I prefer Issues being raised)😁.
👍👍👍 |
Are there any updates? |
Not yet. I'm tired up with other things..I hope to look at this in the next few days. |
Here's the fix ... (and I'll upload a new revision when I've had some sleep 😁💤).
|
Thanks a lot! I truly appreciate you taking the time to fix this. |
I found a hierarchy issue in PolyTree results. I saw this closed issue, but my case is different.
I attached a text file with the contours needed to reproduce the issue. I couldn’t find a simpler example.
clipper_paths.txt
The last line in the text file represents the small red rectangle inside the complex polygon. However, when computing the union using PolyTree64, this small polygon appears at the same hierarchy level as the inner contour of the outer complex polygon (level 1). Since it is inside that inner contour, it should instead be at level 2.
Additionally, if you insert another polygon inside this complex polygon instead of this small one, its hierarchy will also be incorrect, indicating a general issue with the nesting logic.
Below is the code to reproduce the issue:
Could you confirm if this is expected behavior or a bug? Thanks!
The text was updated successfully, but these errors were encountered: