karlwessel / mplopengl

OpenGL based backend for matplotlib
MIT License
14 stars 5 forks source link

Handle non convex polygons #7

Open karlwessel opened 5 years ago

karlwessel commented 5 years ago

Currently filled polygons returned by path_to_poly are rendered directly as OpenGL POLYGON primitives. This produces artefacts for non-convex polygons like the filled plus marker (marker style "P").

Probably no easy way to fix but to triangulate into convex polygons...