Class SoSimplifier

  • Direct Known Subclasses:
    SoDecimator

    public class SoSimplifier
    extends Inventor
    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:
    SoDecimator, SoSimplifyAction, SoShapeSimplifyAction, SoGlobalSimplifyAction
    • Method Detail

      • beginShape

        public void beginShape​(SoSimplifier.ShapeTypes name_21932)
        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_21937)
        Method to set optional vertex data (color). Must be called before setVertex()
      • 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 after simplify(), returns the remaining triangles.
      • simplify

        public SoNode simplify​(float name_21938)
        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

        public void setNormal​(SbVec3f name_21934)
        Method to set optional vertex data (normal). Must be called before setVertex().
      • setData

        public void setData​(int numData,
                            float[] name_21936)
        Method to set optional vertex data (data). Must be called before setVertex().
      • endShape

        public void endShape()
        Ends a shape started by beginShape().
      • clear

        public void clear()
        Removes all shapes and reset.
      • setVertex

        public void setVertex​(SbVec3f name_21933)
        Specifies a new vertex location.