Click or drag to resize
SoGlobalSimplifyAction Class

Traverses the scene graph and collects all the triangles in a single list.

Inheritance Hierarchy

Namespace: OIV.Inventor.Actions
Assembly: OIV.Inventor (in OIV.Inventor.dll) Version: 9.9.13.0 (9.9.13.0)
Syntax
public class SoGlobalSimplifyAction : SoSimplifyAction

The SoGlobalSimplifyAction type exposes the following members.

Constructors
  NameDescription
Public methodSoGlobalSimplifyAction

Constructor.

Top
Methods
  NameDescription
Public methodAddShapeHintsNode

Sets whether a shape hints node is added.

Public methodApply(SoNode)

Initiates an action on the graph defined by a node.

(Overrides SoActionApply(SoNode).)
Public methodApply(SoPath)

Initiates an action on the graph defined by a path.

(Overrides SoActionApply(SoPath).)
Public methodApply(SoPathList)
Calls Apply(pathList, false).
Public methodApply(SoPathList, Boolean)

Initiates an action on the graph defined by a list of paths.

(Overrides SoActionApply(SoPathList, Boolean).)
Public methodAreAllShapesCatched

Gets the flag that specifies whether simple shapes are simplified.

Public methodAreNormalGenerated

Gets the normal generation flag.

Public methodClearApplyResult

When applied, an action may reference nodes or create objects (e.g.

(Overrides SoActionClearApplyResult.)
Public methodStatic memberEnableElement
Public methodEnableElements

(Overrides SoSimplifyActionEnableElements.)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodForwardTraversal

Traverse a node that is not part of the current scenegraph.

(Inherited from SoAction.)
Public methodGenerateNormals

Sets the normal generation flag.

Public methodGetContinueActionInBranchFlag

This function indicates if the action must stop in the current branch.

(Inherited from SoAction.)
Public methodGetCurPath
(Inherited from SoAction.)
Public methodGetHashCode
Overrides GetHashCode().
(Inherited from SoNetBase.)
Public methodGetMinTriangles

Gets the minimum number of triangles for a simplified child.

(Inherited from SoSimplifyAction.)
Public methodGetNodeAppliedTo
(Inherited from SoAction.)
Public methodGetNumRanges

Gets the number of ranges that will be used in the LevelOfSimplification node to decide which level of detail to display.

(Inherited from SoSimplifyAction.)
Public methodGetNumSimplificationLevels

Gets number of levels of detail to produce.

(Inherited from SoSimplifyAction.)
Public methodGetOriginalPathListAppliedTo
(Inherited from SoAction.)
Public methodGetPathAppliedTo
(Inherited from SoAction.)
Public methodGetPathCode(SbNativeArrayInt32)

Returns path code based on where current node (the node at the end of the current path) lies with respect to the path(s) the action is being applied to.

(Inherited from SoAction.)
Public methodGetPathCode(SbNativeInt32Array) Obsolete.

Returns path code based on where current node (the node at the end of the current path) lies with respect to the path(s) the action is being applied to.

(Inherited from SoAction.)
Public methodGetPathListAppliedTo
(Inherited from SoAction.)
Public methodGetPipeId

Gets pipe identifier in the range [1..N] associated to this render action while running a ScaleViz Multipipe configuration.

(Inherited from SoAction.)
Public methodGetRanges

Gets the ranges that will be used in the LevelOfSimplification node to decide which level of detail to display.

(Inherited from SoSimplifyAction.)
Public methodGetSceneManager

Return the SoSceneManager associated with this action.

(Inherited from SoAction.)
Public methodGetSimplificationLevels

Gets percentages to produce at each level of detail.

(Inherited from SoSimplifyAction.)
Public methodGetSimplificationStrategy

Gets the strategy used to determine how to group triangles into the simplified shapes.

Public methodGetSimplifiedSceneGraph

This returns the new scene graph which contains the simplified result.

Public methodGetSizeFactor

Gets the scale factor to use to decide what values of ranges to use in the LevelOfSimplification node.

(Inherited from SoSimplifyAction.)
Public methodGetState
(Inherited from SoAction.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetUrlName

Gets the name used when creating Inline files for each simplified child.

(Inherited from SoSimplifyAction.)
Public methodGetWhatAppliedTo
(Inherited from SoAction.)
Public methodHasTerminated
(Inherited from SoAction.)
Public methodInvalidateState

Invalidates the current traversal state in the action, forcing it to be recreated when the action is next applied.

(Inherited from SoAction.)
Public methodIsBeingApplied

Returns true if this action is currently being applied.

(Inherited from SoAction.)
Public methodIsInlineLOD

Gets inlineLOD flag.

(Inherited from SoSimplifyAction.)
Public methodIsLastPathListAppliedTo
(Inherited from SoAction.)
Public methodIsRenderCulling

Gets render culling flag.

(Inherited from SoSimplifyAction.)
Public methodIsShapeHintAdded

Gets whether a shape hints node will be added.

Public methodIsUsingAlternateRep

Returns true if current action is using alternate representations.

(Inherited from SoAction.)
Public methodIsVerbose

Gets verbosity flag.

(Inherited from SoSimplifyAction.)
Public methodPostDelayedTraversal

Method called by SoMultiPassManager after delayed pass traversals.

(Inherited from SoAction.)
Public methodPreDelayedTraversal

Method called by SoMultiPassManager before delayed pass traversals.

(Inherited from SoAction.)
Public methodResetContinueActionInBranchFlag

This function resets the continue action flag.

(Inherited from SoAction.)
Public methodSetCatchAllShapesFlag

Sets the flag that specifies whether simple shapes are simplified.

Public methodSetInlineLOD

Sets inlineLOD flag.

(Inherited from SoSimplifyAction.)
Public methodSetMinTriangles

Sets the minimum number of triangles for a simplified child; if a given percentage would create a simplified version that went below this minimum, no simplified chld is produced for this level.

(Inherited from SoSimplifyAction.)
Public methodSetPipeId

Sets pipe identifier in the range [1..N] associated to this render action while running a ScaleViz Multipipe configuration.

(Inherited from SoAction.)
Public methodSetRanges

Sets the ranges that will be used in the LevelOfSimplification node to decide which level of detail to display.

(Inherited from SoSimplifyAction.)
Public methodSetRenderCulling

Sets render culling flag.

(Inherited from SoSimplifyAction.)
Public methodSetSceneManager

Set the scene manager associated with this action (if any ).

(Inherited from SoAction.)
Public methodSetSimplificationLevels

Sets number of levels of detail to produce and what percentage to produce at each level.

(Inherited from SoSimplifyAction.)
Public methodSetSimplificationStrategy

Sets the strategy used to determine how to group triangles into the simplified shapes.

Public methodSetSizeFactor

Sets the scale factor to use to decide what values of ranges to use in the LevelOfSimplification node.

(Inherited from SoSimplifyAction.)
Public methodSetUpState
(Inherited from SoAction.)
Public methodSetUrlName

Sets the name used when creating Inline files for each simplified child.

(Inherited from SoSimplifyAction.)
Public methodSetVerbosity

Sets verbosity flag.

(Inherited from SoSimplifyAction.)
Public methodStopActionInBranch

This function stops the action in the current Scene Graph branch.

(Inherited from SoAction.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodTraverse
(Inherited from SoAction.)
Public methodUseAlternateRep

Tell the action to use alternate representations during traversal when available.

(Inherited from SoAction.)
Top
Remarks

This list is then simplified and the result is stored in a new scene graph.

This class traverses the scene graph and collects all the triangles in a single list. This list is then simplified and the result is stored in a new scene graph.

The SoGlobalSimplifyAction provides two simplification strategies:

  • SIMPLIFY_GLOBALLY: all the triangles found in the scene graph are collected in a single object. Then this object is simplified.

  • SIMPLIFY_BY_SUBGROUP: triangles are collected until a material change or a separator is found.

The default strategy is SIMPLIFY_BY_SUBGROUP.

NOTE: Colors and normal vectors in the existing shapes are not preserved!

Calling generateNormals(true), which is the default, tells Open Inventor to compute per-vertex normal during this action. When disabled (calling generateNormals(false)), objects may appear faceted instead of appearing smooth.

If generateNormals is false, it may be useful to call addShapeHints(true). This tells Open Inventor to add an SoShapeHints node to the result scene graph that will cause normals to be computed during the next render traversal.

By default the SoGlobalSimplifyAction collects all the triangles even if they are part of a simple shape (cube, cone, sphere, text3...). Setting the setCatchAllShapesFlag() flag to false tells the action to collect triangles only if they belong to a complex shape.

The getSimplifiedSceneGraph() method returns the root of the new scene graph after applying the SoGlobalSimplifyAction.

Typically you will pass an instance of SoDecimator to the constructor. Please see SoDecimator for info about which geometry objects can be simplified.

SoAction, SoLevelOfSimplification, SoShapeSimplifyAction, SoSimplifyAction

See Also