Class SoDecimator
java.lang.Object
com.openinventor.inventor.Inventor
com.openinventor.inventor.simplifier.SoSimplifier
com.openinventor.inventor.simplifier.SoDecimator
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:
SoFaceSet
SoIndexedFaceSet
SoIndexedNurbsSurface
SoIndexedTriangleStripSet
SoNurbsSurface
SoTriangleStripSet
The following geometry nodes are not decimated:
SoAnnoText3
SoAsciiText
SoCone
SoCube
SoCylinder
SoIndexedLineSet
SoIndexedNurbsCurve
SoLineSet
SoNurbsCurve
SoPointSet
SoQuadMesh
SoSphere
SoText2
SoText3
- Any geometry under an
SoLOD
- Any geometry under an
SoLevelOfDetail
- Any geometry under an
SoLevelOfSimplification
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:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.openinventor.inventor.simplifier.SoSimplifier
SoSimplifier.ShapeTypes
Nested classes/interfaces inherited from class com.openinventor.inventor.Inventor
Inventor.ConstructorCommand
-
Field Summary
Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
setSimplifiedShapeClass
(Class<? extends Inventor> simplifiedShapeType) Sets the shape type used for building the simplified node.Methods inherited from class com.openinventor.inventor.simplifier.SoSimplifier
beginShape, clear, endShape, getNumTriangles, getVerbosity, setColor, setData, setNormal, setVerbosity, setVertex, simplify
Methods inherited from class com.openinventor.inventor.Inventor
dispose, getNativeResourceHandle
-
Constructor Details
-
SoDecimator
public SoDecimator()Constructor.
-
-
Method Details
-
setSimplifiedShapeClass
Sets the shape type used for building the simplified node. OnlySoIndexedFaceSet
andSoFaceSet
are supported.SoIndexedFaceSet
is used by default.
-