Added s/getDoTriStrip and s/getSmoothing method.

This commit is contained in:
Robert Osfield
2006-02-06 20:36:09 +00:00
parent 5418757d9d
commit 608a183753
2 changed files with 24 additions and 7 deletions

View File

@@ -43,6 +43,12 @@ class OSGUTIL_EXPORT Simplifier : public osg::NodeVisitor
* Note, Only used when up sampling i.e. sampleRatio > 1.0.*/
void setMaximumLength(float length) { _maximumLength = length; }
float getMaximumLength() const { return _maximumLength; }
void setDoTriStrip(bool on) { _triStrip = on; }
bool getDoTriStrip() const { return _triStrip; }
void setSmoothing(bool on) { _smoothing = on; }
bool getSmoothing() const { return _smoothing; }
class ContinueSimplificationCallback : public osg::Referenced
{
@@ -101,6 +107,8 @@ class OSGUTIL_EXPORT Simplifier : public osg::NodeVisitor
float _sampleRatio;
float _maximumError;
float _maximumLength;
bool _triStrip;
bool _smoothing;
osg::ref_ptr<ContinueSimplificationCallback> _continueSimplificationCallback;