Class SoSimplifier
java.lang.Object
com.openinventor.inventor.Inventor
com.openinventor.inventor.simplifier.SoSimplifier
- Direct Known Subclasses:
SoDecimator
Abstract base class for objects that encapsulate simplification algorithms.
This class abstract base class for objects that encapsulates simplification algorithms. This object receives a set of triangles and returns a new list representing a simplified version of the original geometry.
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class com.openinventor.inventor.Inventor
Inventor.ConstructorCommand -
Field Summary
Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle -
Method Summary
Modifier and TypeMethodDescriptionvoidbeginShape(SoSimplifier.ShapeTypes name_21391) Starts a new shape, ShapeType defines which triangle organization to use.voidclear()Removes all shapes and reset.voidendShape()Ends a shape started bybeginShape().intReturns the number of triangles actually stored in the object.booleanGets whether to print messages while simplifying.voidsetColor(long name_21396) Method to set optional vertex data (color).voidsetData(int numData, float[] name_21395) Method to set optional vertex data (data).voidMethod to set optional vertex data (normal).voidsetVerbosity(boolean v) Sets whether to print messages while simplifying.voidSpecifies a new vertex location.simplify(float name_21397) Performs the simplification on the shapes and returns a simplified node.Methods inherited from class com.openinventor.inventor.Inventor
dispose, getNativeResourceHandle
-
Method Details
-
beginShape
Starts a new shape, ShapeType defines which triangle organization to use. ShapeType can be one of TRIANGLES, TRIANGLE_STRIP, TRIANGLE_FAN. -
setVerbosity
public void setVerbosity(boolean v) Sets whether to print messages while simplifying. -
setColor
public void setColor(long name_21396) Method to set optional vertex data (color). Must be called beforesetVertex() -
getVerbosity
public boolean getVerbosity()Gets whether to print messages while simplifying. -
getNumTriangles
public int getNumTriangles()Returns the number of triangles actually stored in the object. If called aftersimplify(), returns the remaining triangles. -
simplify
Performs the simplification on the shapes and returns a simplified node. On this class, this function is pure virtual; derived classes must implement this function. -
setNormal
Method to set optional vertex data (normal). Must be called beforesetVertex(). -
setData
public void setData(int numData, float[] name_21395) Method to set optional vertex data (data). Must be called beforesetVertex(). -
endShape
public void endShape()Ends a shape started bybeginShape(). -
clear
public void clear()Removes all shapes and reset. -
setVertex
Specifies a new vertex location.
-