32 #ifndef Tessellator_INCLUDE_ONCE 33 #define Tessellator_INCLUDE_ONCE 54 typedef void (
CALLBACK *callback_type)(void);
64 const std::vector<dvec3>&
contourVerts()
const {
return mContourVerts; }
70 const std::vector<int>&
contours()
const {
return mContours; }
73 std::vector<int>&
contours() {
return mContours; }
113 bool tessellate(
bool append_tessellated_tris=
false);
116 ref<Geometry> tessellateGeometry(
bool append_tessellated_tris=
false);
127 static void CALLBACK tessError( GLenum errno );
128 void freeCombinedVertices();
137 std::vector< std::vector<fvec3> >
mFans;
const std::vector< fvec3 > & tessellatedTris() const
A set of triangles representing the tessellated polygon.
std::vector< fvec3 > & tessellatedTris()
A set of triangles representing the tessellated polygon.
Tessellates a complex polygon defined by a set of outlines into a set of triangles that can be render...
bool boundaryOnly() const
See gluTessProperty documentation (GLU_TESS_BOUNDARY_ONLY)
std::vector< fvec3 > mTessellatedTris
std::vector< dvec3 > & contourVerts()
The contours that specify the complex polygon to be tessellated.
void setTessNormal(const fvec3 &normal)
See gluTessNormal documentation.
std::vector< std::vector< fvec3 > > mFans
const fvec3 & tessNormal() const
See gluTessNormal documentation.
bool mTessellateIntoSinglePolygon
std::vector< std::vector< fvec3 > > mTriStrips
#define VL_INSTRUMENT_CLASS(ClassName, BaseClass)
double tolerance() const
See gluTessProperty documentation (GLU_TESS_TOLERANCE)
std::vector< std::vector< fvec3 > > mLineLoops
Visualization Library main namespace.
const std::vector< dvec3 > & contourVerts() const
The contours that specify the complex polygon to be tessellated.
The base class for all the reference counted objects.
std::vector< int > mContours
const std::vector< int > & contours() const
The contours that specify the complex polygon to be tessellated.
bool tessellateIntoSinglePolygon() const
#define VLGRAPHICS_EXPORT
ETessellationWinding windingRule() const
See gluTessProperty documentation (GLU_TESS_WINDING_RULE)
void setWindingRule(ETessellationWinding rule)
See gluTessProperty documentation (GLU_TESS_WINDING_RULE)
std::vector< dvec3 *> mCombinedVertices
void setBoundaryOnly(bool on)
See gluTessProperty documentation (GLU_TESS_BOUNDARY_ONLY)
The ref<> class is used to reference-count an Object.
std::vector< dvec3 > mContourVerts
void setTolerance(double tolerance)
See gluTessProperty documentation (GLU_TESS_TOLERANCE)
void setTessellateIntoSinglePolygon(bool on)
std::vector< int > & contours()
The contours that specify the complex polygon to be tessellated.
ETessellationWinding mWindingRule