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

README winding confusion #11

Open
generic-coder-1 opened this issue Jan 28, 2024 · 3 comments
Open

README winding confusion #11

generic-coder-1 opened this issue Jan 28, 2024 · 3 comments

Comments

@generic-coder-1
Copy link

in the README it says:
"This has two contours (rings), the first with four points, the second with three points. The second has 'clockwise' winding, signifying it is a 'hole'."

But it gives this example:

[ 
  [ [0,0],[7,0],[7,4],[0,4] ],   
  [ [1,1],[3,1],[3,3] ] 
]

where both of the contours are clockwise.

Is the wording correct or is the example?

@frewsxcv
Copy link
Owner

[ [0,0],[7,0],[7,4],[0,4] ], is counter-clockwise

@generic-coder-1
Copy link
Author

My apologizes, what I meant to say was that they are both counter clockwise. I mistyped what I was trying to say.

@frewsxcv
Copy link
Owner

Ah yes this is a bug in the documentation. Great catch! The interior should be clock-wise.

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