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

Input and output rings have opposite winding #51

Closed
e-n-f opened this issue Nov 22, 2016 · 0 comments
Closed

Input and output rings have opposite winding #51

e-n-f opened this issue Nov 22, 2016 · 0 comments

Comments

@e-n-f
Copy link
Contributor

e-n-f commented Nov 22, 2016

https://github.com/mapbox/wagyu/blob/ring-orientation/tests/orient.cpp contains a simple example of asking wagyu to process a single ring. The input ring is

(0,0), (1,0), (1,1), (0,1), (0,0)

and the output is

(1,0), (0,0), (0,1), (1,1), (1,0)

If it isn't clear, the problem is that the points are in the opposite order in the input and the output. (They also start counting from a different point around the ring, but that is fine and expected.)

cc @flippmoke

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

1 participant