Inheritance diagram for osgUtil::Simplifier:
Public Types | |
typedef std::vector< unsigned int > | IndexList |
Public Member Functions | |
Simplifier (float sampleRatio=1.0f, float maximumError=0.0f) | |
void | setSampleRatio (float sampleRatio) |
float | getSampleRatio () const |
void | setMaximumError (float error) |
float | getMaximumError () const |
void | setContinueSimplificationCallback (ContinueSimplificationCallback *cb) |
ContinueSimplificationCallback * | getContinueSimplificationCallback () |
const ContinueSimplificationCallback * | getContinueSimplificationCallback () const |
bool | continueSimplification (float nextError, unsigned int numOriginalPrimitives, unsigned int numRemainingPrimitives) const |
virtual bool | continueSimplificationImplementation (float nextError, unsigned int numOriginalPrimitives, unsigned int numRemainingPrimitives) const |
virtual void | apply (osg::Geode &geode) |
void | simplify (osg::Geometry &geometry) |
simply the geometry. | |
void | simplify (osg::Geometry &geometry, const IndexList &protectedPoints) |
simply the geometry, whilst protecting key points from being modified. | |
Protected Attributes | |
float | _sampleRatio |
float | _maximumError |
osg::ref_ptr< ContinueSimplificationCallback > | _continueSimplificationCallback |
|
|
|
|
|
Reimplemented from osg::NodeVisitor. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
simply the geometry, whilst protecting key points from being modified.
|
|
simply the geometry.
|
|
|
|
|
|
|