Open Inventor Release 2024.2.1
 
Loading...
Searching...
No Matches
SoDecimator Class Reference

VSG extension 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 SoNodesimplify (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...
 

Detailed Description

VSG extension 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.

SEE ALSO

SoSimplifier, SoSimplifyAction, SoShapeSimplifyAction, SoGlobalSimplifyAction

Definition at line 85 of file SoDecimator.h.

Constructor & Destructor Documentation

◆ SoDecimator()

SoDecimator::SoDecimator ( )

Constructor.

◆ ~SoDecimator()

SoDecimator::~SoDecimator ( )

Destructor.

Member Function Documentation

◆ beginShape()

virtual void SoDecimator::beginShape ( ShapeType  )
virtual

Starts a new shape.

Shape Type defines which triangle organization to use.

Reimplemented from SoSimplifier.

◆ clear()

virtual void SoDecimator::clear ( )
virtual

Removes all shapes and reset.

Reimplemented from SoSimplifier.

◆ endShape()

virtual void SoDecimator::endShape ( )
virtual

End shape.

Reimplemented from SoSimplifier.

◆ setSimplifiedShapeType()

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.

◆ setVerbosity()

virtual void SoDecimator::setVerbosity ( SbBool  v)
virtual

Verbose mode.

Reimplemented from SoSimplifier.

◆ setVertex()

virtual void SoDecimator::setVertex ( const SbVec3f )
virtual

Methods used to specify data to simplify.

Reimplemented from SoSimplifier.

◆ simplify()

virtual SoNode * SoDecimator::simplify ( float  )
virtual

Performs the simplification on the shapes and builds the simplified node.

Implements SoSimplifier.


The documentation for this class was generated from the following file: