SoDecimator Class |
Encapsulates an algorithm for simplifying shapes through mesh decimation.
Namespace: OIV.Inventor.Simplifier
The SoDecimator type exposes the following members.
Name | Description | |
---|---|---|
![]() | SoDecimator | Constructor. |
Name | Description | |
---|---|---|
![]() | BeginShape | Starts a new shape, ShapeType defines which triangle organization to use. |
![]() | Clear | Removes all shapes and reset. |
![]() | EndShape | Ends a shape started by beginShape(). |
![]() | Equals | (Inherited from Object.) |
![]() | GetHashCode |
Overrides GetHashCode().
(Inherited from SoNetBase.) |
![]() | GetNumTriangles | Returns the number of triangles actually stored in the object. |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | GetVerbosity | Gets whether to print messages while simplifying. |
![]() | SetColor | Method to set optional vertex data (color). |
![]() | SetData | Method to set optional vertex data (data). |
![]() | SetNormal | Method to set optional vertex data (normal). |
![]() | SetSimplifiedShapeType | Sets the shape type used for building the simplified node. |
![]() | SetVerbosity | Sets whether to print messages while simplifying. |
![]() | SetVertex | Specifies a new vertex location. |
![]() | Simplify | Performs the simplification on the shapes and returns a simplified node. |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
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:
Any geometry under an SoLOD
Any geometry under an SoLevelOfDetail
Any geometry under an SoLevelOfSimplification
Any geometry under an SoVRMLLOD
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.