reference

This documentation is automatically generated from the openFrameworks source code using doxygen and refers to the most recent release, version 0.12.0.

ofTessellator.h
Go to the documentation of this file.
1#pragma once
2
4#include "ofConstants.h"
5
7typedef struct TESSalloc TESSalloc;
8
25{
26public:
29
31 ofTessellator(const ofTessellator & mom);
32
35
38 void tessellateToMesh( const std::vector<ofPolyline>& src, ofPolyWindingMode polyWindingMode, ofMesh & dstmesh, bool bIs2D=false );
39
42 void tessellateToMesh( const ofPolyline& src, ofPolyWindingMode polyWindingMode, ofMesh& dstmesh, bool bIs2D=false );
43
46 void tessellateToPolylines( const std::vector<ofPolyline>& src, ofPolyWindingMode polyWindingMode, std::vector<ofPolyline>& dstpoly, bool bIs2D=false );
47
49 void tessellateToPolylines( const ofPolyline & src, ofPolyWindingMode polyWindingMode, std::vector<ofPolyline>& dstpoly, bool bIs2D=false );
50
51private:
52
53 void performTessellation( ofPolyWindingMode polyWindingMode, ofMesh& dstmesh, bool bIs2D );
54 void performTessellation(ofPolyWindingMode polyWindingMode, std::vector<ofPolyline>& dstpoly, bool bIs2D );
55 void init();
56
57 TESStesselator * cacheTess;
58 TESSalloc tessAllocator;
59};
60
61
ofTessellator exists for one purpose: to turn ofPolylines into ofMeshes so that they can be more effi...
Definition ofTessellator.h:25
void tessellateToPolylines(const std::vector< ofPolyline > &src, ofPolyWindingMode polyWindingMode, std::vector< ofPolyline > &dstpoly, bool bIs2D=false)
Tessellates a vector of ofPolyline instances into vector of ofPolyline instances using the winding mo...
void tessellateToPolylines(const ofPolyline &src, ofPolyWindingMode polyWindingMode, std::vector< ofPolyline > &dstpoly, bool bIs2D=false)
Tessellate multiple polylines into a single polyline.
~ofTessellator()
Definition ofTessellator.cpp:62
void tessellateToMesh(const std::vector< ofPolyline > &src, ofPolyWindingMode polyWindingMode, ofMesh &dstmesh, bool bIs2D=false)
Tessellates a vector of ofPolyline instances into a single ofMesh instance using the winding mode set...
ofTessellator & operator=(const ofTessellator &mom)
Operator overloading to copy properties from one tessellator to another.
Definition ofTessellator.cpp:77
ofTessellator()
Definition ofTessellator.cpp:55
ofPolyWindingMode
represents the available polygon winding modes.
Definition ofGraphicsConstants.h:97
struct TESSalloc TESSalloc
Definition ofTessellator.h:7
struct TESStesselator TESStesselator
Definition ofTessellator.h:6