You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Point2fs that decompose(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:
poly(decompose(Point2f, Rect(0, 0, 1, 1)))
nor does plotting polygons with a hole:
using GeometryBasics
p =Polygon(decompose(Point2f, Rect(0, 0, 1, 1)), [decompose(Point2f, Circle(Point2f(0.5), 0.25))])
poly(p)
Only specifying the coordinates manually:
p =Polygon(Point2f[(0,0), (1,0), (1,1), (0,1)], [decompose(Point2f, Circle(Point2f(0.5), 0.25))])
worked:
The text was updated successfully, but these errors were encountered:
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.
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: