OpenGLContext.scenegraph.polygon

Holder for metadata regarding a polygon

Functions

Classes

Class encapsulated a degenerate triangle definition
At the moment this is not a particularly useful class, eventually it might be used for interactive debugging of the geometry (for instance highlighting the degenerate polygons with indexed line sets).
Note: an index of -1 indicates a likely tesselation- generated vertex.
Holder for metadata regarding a particular polygon
Often during certain operations (such as tessellation) is useful to have an object for representing a polygon which binds together all the metadata regarding that polygon.
The Polygon class is modeled as a simple list-of-vertices with a convenience method normalise to make the class easier to use when dealing with triangle-only systems such as the array geometry classes.