Class SoReorganizeAction


public class SoReorganizeAction extends SoSimplifyAction
Reorganizes the scene graph by grouping shapes with common properties, then groups these shapes in a single shape and runs the simplifier on it. This class reorganizes the scene graph by grouping shapes with common properties, then groups these shapes in a single shape and runs the simplifier on it. If a simplifier is not provided, it creates an indexed triangle strip set from this shape.

In order for shapes to be grouped together, they must:

  • Be indexed shapes (e.g., SoIndexedFaceSet)
  • Have the same material properties
  • Have a material binding of PER_VERTEX_INDEXED.

See Also:
  • Constructor Details Link icon

    • SoReorganizeAction Link icon

      public SoReorganizeAction()
      Calls SoReorganizeAction((com.openinventor.inventor.simplifier.SoSimplifier)null).
    • SoReorganizeAction Link icon

      public SoReorganizeAction(SoSimplifier _simplifier)
      Constructor.
  • Method Details Link icon

    • getSimplifier Link icon

      public SoSimplifier getSimplifier()
      Returns the simplifier being used, may be NULL.
    • generateTriangleStrips Link icon

      public void generateTriangleStrips(boolean g)
      Sets whether triangle strips should be generated.
      Default is true. If false, IndexedFaceSets are generated.
    • areNormalGenerated Link icon

      public boolean areNormalGenerated()
      Gets whether normals should be generated during reorganization.
    • generateNormals Link icon

      public void generateNormals(boolean g)
      Sets whether normals should be generated during reorganization.
      Default is true.
    • getSimplifiedSceneGraph Link icon

      public SoSeparator getSimplifiedSceneGraph()
      Returns result of reorganization as new scene graph.
    • startReport Link icon

      public static void startReport(String msg)
      Starts a report. The specified message is sent to the console window.
    • areVPNodesGenerated Link icon

      public boolean areVPNodesGenerated()
      Gets whether vertex property nodes should be generated during reorganization.
    • matchIndexArrays Link icon

      public void matchIndexArrays(boolean g)
      Sets whether to try to match index arrays during reorganization.
      Default is true.
    • areIndexArraysMatched Link icon

      public boolean areIndexArraysMatched()
      Gets whether to try to match index arrays during reorganization.
    • finishReport Link icon

      public static void finishReport()
      Ends a report. "Done" is sent to the console window.
    • generateTexCoords Link icon

      public void generateTexCoords(boolean g)
      Sets whether texture coordinates should be generated during reorganization.
      Default is true.
    • areTriangleStripGenerated Link icon

      public boolean areTriangleStripGenerated()
      Gets whether triangle strips should be generated; if false, IndexedFaceSets are generated.
    • enableElement Link icon

      public static void enableElement(Class<? extends Inventor> t, int stkIndex)
    • generateVPNodes Link icon

      public void generateVPNodes(boolean g)
      Sets whether vertex property nodes should be generated during reorganization.
      Default is true.
    • areTexCoordsGenerated Link icon

      public boolean areTexCoordsGenerated()
      Gets whether texture coordinates should be generated during reorganization.