Encapsulates an algorithm for simplifying shapes through mesh decimation. More...
#include <Inventor/simplifier/SoDecimator.h>
Public Member Functions | |
SoDecimator () | |
~SoDecimator () | |
virtual void | beginShape (ShapeType) |
virtual void | endShape () |
virtual void | setVertex (const SbVec3f &) |
virtual void | setSimplifiedShapeType (SoType simplifiedShapeType) |
virtual SoNode * | simplify (float) |
virtual void | clear () |
virtual void | setVerbosity (SbBool v) |
This class implements a mesh decimation algorithm for simplifying shapes.
Not all geometry nodes can be decimated. The following geometry nodes are decimated:
The following geometry nodes are not decimated:
The decimator does not decimate nodes such as SoCone, that adjust their complexity automatically (based on SoComplexity and/or the viewer-requested decimation level). The decimator also does not decimate nodes such as SoVRMLElevationGrid where decimation would not preserve the type of geometry. Decimated geometry is always an indexed face set.
SoSimplifier, SoSimplifyAction, SoShapeSimplifyAction, SoGlobalSimplifyAction
SoDecimator::SoDecimator | ( | ) |
Constructor.
SoDecimator::~SoDecimator | ( | ) |
Destructor.
virtual void SoDecimator::beginShape | ( | ShapeType | ) | [virtual] |
Starts a new shape.
Shape Type defines which triangle organization to use.
Reimplemented from SoSimplifier.
virtual void SoDecimator::clear | ( | ) | [virtual] |
Removes all shapes and reset.
Reimplemented from SoSimplifier.
virtual void SoDecimator::endShape | ( | ) | [virtual] |
End shape.
Reimplemented from SoSimplifier.
virtual void SoDecimator::setSimplifiedShapeType | ( | SoType | simplifiedShapeType | ) | [virtual] |
Sets the shape type used for building the simplified node.
Only SoIndexedFaceSet and SoFaceSet are supported. SoIndexedFaceSet is used by default.
virtual void SoDecimator::setVerbosity | ( | SbBool | v | ) | [virtual] |
Verbose mode.
Reimplemented from SoSimplifier.
virtual void SoDecimator::setVertex | ( | const SbVec3f & | ) | [virtual] |
Methods used to specify data to simplify.
Reimplemented from SoSimplifier.
virtual SoNode* SoDecimator::simplify | ( | float | ) | [virtual] |
Performs the simplification on the shapes and builds the simplified node.
Implements SoSimplifier.