This PR makes a change to the polygon drawing function in order to support non-convex polygons. Non-convex polygons caused glitches when feathering was enabled.
The polygons are now drawn by first triangulating it (with a function from the earcutr crate) and then creating a Mesh from the resulting set of triangles.
Feathering can now be enabled and the plots look much nicer:
Before:
After:
The downside is the additional dependency, but I'm not aware of how to support non-convex polygons in another way.
This PR makes a change to the polygon drawing function in order to support non-convex polygons. Non-convex polygons caused glitches when feathering was enabled.
The polygons are now drawn by first triangulating it (with a function from the earcutr crate) and then creating a
Mesh
from the resulting set of triangles.Feathering can now be enabled and the plots look much nicer:
Before:
After:
The downside is the additional dependency, but I'm not aware of how to support non-convex polygons in another way.
This PR also bumps egui to 0.27.2.