class OSGUTIL_EXPORT osgUtil::Tesselator

A simple class for tessellating a single polygon boundary.

Public Fields

[more]int _errorCode

Public Methods

[more] Tesselator()
[more] ~Tesselator()
[more]void tesselate(osg::Vec3* coords, int numIndices, int* indices, InputBoundaryDirection ibd=COUNTER_CLOCK_WISE)
[more]void tesselate(osg::Vec3* coords, int numIndices, osg::ushort* indices, InputBoundaryDirection ibd=COUNTER_CLOCK_WISE)
[more]void tesselate(osg::Vec3* coords, int numIndices, osg::uint* indices, InputBoundaryDirection ibd=COUNTER_CLOCK_WISE)
[more]typedef std::vector<osg::uint> IndexVec const IndexVec& getResult() const
[more]void beginPrimitive(int primitiveType)
[more]void endPrimitive()

Public Members

[more]enum InputBoundaryDirection
[more]struct VertexIndexSet

Protected Fields

[more]CoordVec _coordVec
[more]IndexVec _tesselated_indices
[more]int _currentPrimtiveType
[more]IndexVec _acummulated_indices

Protected Methods

[more]typedef std::vector<VertexIndexSet> CoordVec void init()
[more]void do_it()


Documentation

A simple class for tessellating a single polygon boundary. Currently uses old style glu tessellation functions for portability. It be nice to use the modern glu tessellation functions or to find a small set of code for doing this job better.
o Tesselator()

o ~Tesselator()

oenum InputBoundaryDirection

o CLOCK_WISE

o COUNTER_CLOCK_WISE

ovoid tesselate(osg::Vec3* coords, int numIndices, int* indices, InputBoundaryDirection ibd=COUNTER_CLOCK_WISE)

ovoid tesselate(osg::Vec3* coords, int numIndices, osg::ushort* indices, InputBoundaryDirection ibd=COUNTER_CLOCK_WISE)

ovoid tesselate(osg::Vec3* coords, int numIndices, osg::uint* indices, InputBoundaryDirection ibd=COUNTER_CLOCK_WISE)

otypedef std::vector<osg::uint> IndexVec const IndexVec& getResult() const

ovoid beginPrimitive(int primitiveType)

ovoid endPrimitive()

oint _errorCode

ostruct VertexIndexSet

o VertexIndexSet()

o VertexIndexSet(Tesselator* tess, const osg::Vec3& vec, osg::uint index)

o VertexIndexSet(const VertexIndexSet& vip)

oVertexIndexSet& operator = (const VertexIndexSet& vip)

ovoid set(Tesselator* tess, const osg::Vec3& vec, osg::uint index)

ovoid accumulate()

odouble _vertex[3]

oTesselator* _Tesselator

oosg::uint _index

otypedef std::vector<VertexIndexSet> CoordVec void init()

ovoid do_it()

oCoordVec _coordVec

oIndexVec _tesselated_indices

oint _currentPrimtiveType

oIndexVec _acummulated_indices


This class has no child classes.
Friends:
VertexIndexSet

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.