Encapsulates an algorithm for simplifying shapes through mesh decimation.
More...
#include <Inventor/simplifier/SoDecimator.h>
Inheritance diagram for SoDecimator:Public Member Functions | |
| SoDecimator () | |
| Constructor. | |
| ~SoDecimator () | |
| Destructor. | |
| virtual void | beginShape (ShapeType) |
| Starts a new shape. | |
| virtual void | endShape () |
| End shape. | |
| virtual void | setVertex (const SbVec3f &) |
| Methods used to specify data to simplify. | |
| virtual void | setSimplifiedShapeType (SoType simplifiedShapeType) |
| Sets the shape type used for building the simplified node. | |
| virtual SoNode * | simplify (float) |
| Performs the simplification on the shapes and builds the simplified node. | |
| virtual void | clear () |
| Removes all shapes and reset. | |
| virtual void | setVerbosity (SbBool v) |
| Verbose mode. | |
Public Member Functions inherited from SoSimplifier | |
| SoSimplifier () | |
| Constructor. | |
| virtual | ~SoSimplifier () |
| Destructor. | |
| void | setNormal (const SbVec3f &) |
| Method to set optional vertex data (normal). | |
| void | setData (int numData, const float *) |
| Method to set optional vertex data (data). | |
| void | setColor (const unsigned long &) |
| Method to set optional vertex data (color). | |
| virtual int | getNumTriangles () |
| Returns the number of triangles actually stored in the object. | |
| SbBool | getVerbosity () const |
| Gets whether to print messages while simplifying. | |
Additional Inherited Members | |
Public Types inherited from SoSimplifier | |
| enum | ShapeType { TRIANGLES , TRIANGLE_STRIP , TRIANGLE_FAN } |
| ShapeType. More... | |
Encapsulates an algorithm for simplifying shapes through mesh decimation.
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). Decimated geometry is always an indexed face set.
SoSimplifier, SoSimplifyAction, SoShapeSimplifyAction, SoGlobalSimplifyAction
Definition at line 85 of file SoDecimator.h.
| SoDecimator::SoDecimator | ( | ) |
Constructor.
| SoDecimator::~SoDecimator | ( | ) |
Destructor.
|
virtual |
Starts a new shape.
Shape Type defines which triangle organization to use.
Reimplemented from SoSimplifier.
|
virtual |
Removes all shapes and reset.
Reimplemented from SoSimplifier.
|
virtual |
End shape.
Reimplemented from SoSimplifier.
|
virtual |
Sets the shape type used for building the simplified node.
Only SoIndexedFaceSet and SoFaceSet are supported. SoIndexedFaceSet is used by default.
|
virtual |
Verbose mode.
Reimplemented from SoSimplifier.
|
virtual |
Methods used to specify data to simplify.
Reimplemented from SoSimplifier.
|
virtual |
Performs the simplification on the shapes and builds the simplified node.
Implements SoSimplifier.