-
-
Notifications
You must be signed in to change notification settings - Fork 313
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
Order of decomposes coordinates is not counter/clockwise #2181
Comments
Should probably be considered in JuliaGeometry/GeometryBasics.jl#173 |
Yeah, I've run into this issue as well.... |
Right, this is probably going to be a part of that pr now. Question is which way? Does Cairo have a preference? |
I guess with |
If you're talking about geospatial, I can find you a standard which fits any winding order you might want to do :D but for now, we could go with the standard counterclockwise order? Cairo is fine with either CW or CCW. Yeah consistency is definitely the key here! |
The
Point2f
s thatdecompose(Point2f, Rect(0, 0, 1, 1))
returns are not sorted in a clockwise order (nor counter clockwise). This is not ideal because plotting a decomposed rectangle doesn't work:nor does plotting polygons with a hole:
Only specifying the coordinates manually:
worked:
The text was updated successfully, but these errors were encountered: