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

ClipperOffset return erroneous ring hierarchy for negative offset. #10

Open
SuberFu opened this issue May 18, 2016 · 1 comment
Open

Comments

@SuberFu
Copy link

SuberFu commented May 18, 2016

ClipperOffset seems to return the wrong PolyTree structure when using negative offset.
https://jsfiddle.net/fdnhe938/3/

Note that with positive offset, the polytree's "IsHole" property matches the ring orientation (clockwise).
However, for negative offset, that's swapped.

JsFiddle output is in console.

@kheyse-autodesk
Copy link

I seem to have encountered the same problem.
What I also noticed is that the first child of the PolyTree is not actually the root node: PolyTree.GetFirst().Parent() != PolyTree but PolyTree.GetFirst().Parent().Parent() == PolyTree

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

No branches or pull requests

2 participants