[osg-users] Draw open polygon

Bruno Oliveira bruno.manata.oliveira at gmail.com
Thu Nov 17 02:11:11 PST 2016


Hello,

How does one draw an open polygon using whether OSG API's or OpenGL
primitives?
I know how to draw, for instance, a filled rectangle, but how do I draw a
filled rectangle with a hole inside?

My data structures are stored as follows: a vector of the outward polygon's
vertices in clockwise order (e.g. filled rectangle), and then a vector of
"holes" stored as a vector of vertices in counter-clockwise order
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20161117/3f905a50/attachment-0002.htm>


More information about the osg-users mailing list