ofTessellator
ofTessellator exists for one purpose: to turn ofPolylines into ofMeshes so that they can be more efficiently displayed using OpenGL. The ofPath class uses tessellation to turn its paths into openGL-ready shapes under the hood, so if you're interested in just having ofPolyline instances converted to meshes, it's handled for you by ofPath. If you're interested in using the tessellation multiple polylines at a time, then you'll find what you need in the ofTessellator. Many shapes can't be drawn by OpenGL without tessellation, but by breaking them into triangles or quads, they can be drawn easily, for instance:
The fairly simple shape shown on the left needs to be broken into triangles to be displayed, an example of how this might be done is shown on the right.

init( )
void init()ofTessellator( ... )
ofTessellator(const ofTessellator &mom)Copy constructor to copy properties from one tessellator to another.
Copy constructor to copy properties from one tessellator to another.
ofTessellator( )
ofTessellator()operator=( ... )
ofTessellator & operator=(const ofTessellator &mom)Operator overloading to copy properties from one tessellator to another.
Operator overloading to copy properties from one tessellator to another.
performTessellation( ... )
void performTessellation(ofPolyWindingMode polyWindingMode, ofMesh &dstmesh, bool bIs2D)tessellateToMesh( ... )
void tessellateToMesh(const ofPolyline &src, ofPolyWindingMode polyWindingMode, ofMesh &dstmesh, bool bIs2D=false)Tessellates a ofPolyline instance into a single ofMesh instance using the winding mode set in ofPolyWindingMode.
Tessellates a vector of ofPolyline instances into a single ofMesh instance using the winding mode set in ofPolyWindingMode.
~ofTessellator( )
~ofTessellator()