Boost logo

Geometry :

Subject: [ggl] Polygon to triangles
From: John Swensen (jpswensen)
Date: 2011-02-06 14:11:13


Is there a function to convert a complex polygon (say a simple polygon with holes, represented in Boost.Geometry as an outer ring and an inner ring) into a set of triangles (or polygons without holes). The only reason I ask is because once it comes to actually drawing a complex polygon with opengl, there is no such thing as a polygon with holes. I looked through the examples in the trunk and a couple of quick grep' s of the sources, but couldn't find anything.

John Swensen


Geometry list run by mateusz at loskot.net