Class SoDecimator
- java.lang.Object
-
- com.openinventor.inventor.Inventor
-
- com.openinventor.inventor.simplifier.SoSimplifier
-
- com.openinventor.inventor.simplifier.SoDecimator
-
public class SoDecimator extends SoSimplifier
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 onSoComplexity
and/or the viewer-requested decimation level). Decimated geometry is always an indexed face set.
-
-
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 Constructor Description SoDecimator()
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setSimplifiedShapeClass(java.lang.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
-
-
-
-
Method Detail
-
setSimplifiedShapeClass
public void setSimplifiedShapeClass(java.lang.Class<? extends Inventor> simplifiedShapeType)
Sets the shape type used for building the simplified node. OnlySoIndexedFaceSet
andSoFaceSet
are supported.SoIndexedFaceSet
is used by default.
-
-