ngscopeclient / scopehal-apps

ngscopeclient and other client applications for libscopehal.
https://www.ngscopeclient.org/
BSD 3-Clause "New" or "Revised" License
535 stars 83 forks source link

Support non-convex polygons in EyeMasks #587

Open smunaut opened 1 year ago

smunaut commented 1 year ago

Title says it all.

The old glscopeclient worked because Cairo handles the drawing. In nglscopeclient it uses ImGUI and this only handles convex polygons, so tesselation is needed.

Related ImGUI issue and a ISC licensed, header only library to convert arbitrary polygon to triangles :

https://github.com/ocornut/imgui/issues/760 https://github.com/mapbox/earcut.hpp