We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
from pypex.poly2d import polygon a = [[0,1],[1,2],[3,4],[5, 6],[5,3]] poly = polygon.Polygon(a) print(a) # [[0,1],[1,2],[3,4],[5, 6],[5,3]] print(poly) # [[1 2], [0 1], [5 3], [5 6], [3 4]]
Why are the points in different order
The text was updated successfully, but these errors were encountered:
@DWendou , points are automatically sorted in clockwise direction.
Sorry, something went wrong.
No branches or pull requests
from pypex.poly2d import polygon
a = [[0,1],[1,2],[3,4],[5, 6],[5,3]]
poly = polygon.Polygon(a)
print(a) # [[0,1],[1,2],[3,4],[5, 6],[5,3]]
print(poly) # [[1 2], [0 1], [5 3], [5 6], [3 4]]
Why are the points in different order
The text was updated successfully, but these errors were encountered: