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 OIV.Inventor.Simplifier.SoSimplifier.BeginShape(OIV.Inventor.Simplifier.SoSimplifier.ShapeTypes). | |
Equals | Determines whether the specified Object is equal to the current Object. (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 OIV.Inventor.Nodes.SoLOD
Any geometry under an OIV.Inventor.Nodes.SoLevelOfDetail
Any geometry under an OIV.Inventor.Nodes.SoLevelOfSimplification
The decimator does not decimate nodes such as OIV.Inventor.Nodes.SoCone, that adjust their complexity automatically (based on OIV.Inventor.Nodes.SoComplexity and/or the viewer-requested decimation level). Decimated geometry is always an indexed face set.