Inheritance diagram for osgUtil::Simplifier:
Public Types | |
typedef std::vector< unsigned int > | IndexList |
Public Member Functions | |
Simplifier (float sampleRatio=1.0f, float maximumError=FLT_MAX, float maximumLength=0.0) | |
void | setSampleRatio (float sampleRatio) |
float | getSampleRatio () const |
void | setMaximumError (float error) |
float | getMaximumError () const |
void | setMaximumLength (float length) |
float | getMaximumLength () const |
void | setDoTriStrip (bool on) |
bool | getDoTriStrip () const |
void | setSmoothing (bool on) |
bool | getSmoothing () 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) |
void | simplify (osg::Geometry &geometry, const IndexList &protectedPoints) |
a list of point indices | |
Protected Attributes | |
float | _sampleRatio |
float | _maximumError |
float | _maximumLength |
bool | _triStrip |
bool | _smoothing |
osg::ref_ptr< ContinueSimplificationCallback > | _continueSimplificationCallback |
Classes | |
class | ContinueSimplificationCallback |
|
|
|
|
|
Reimplemented from osg::NodeVisitor. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Set the maximum point error that all point removals must be less than to permit removal of a point. Note, Only used when down sampling. i.e. sampleRatio < 1.0 |
|
Set the maximum length target that all edges must be shorted than. Note, Only used when up sampling i.e. sampleRatio > 1.0. |
|
|
|
|
|
a list of point indices simply the geometry, whilst protecting key points from being modified. |
|
simply the geometry. |
|
|
|
|
|
|
|
|
|
|
|
|