SoComplexitySwitch

InventorModule
genre Visualization
author MeVis Medical Solutions AG
package MeVisLab/Standard
dll SoFrameBufferObjects
definition SoFrameBufferObjects.def
inherits from Switch

Purpose

The module SoComplexitySwitch traverses its children according to the current complexity value in the traversal state.

Usage

Connect this module’s output to a parent node and connect multiple scenes to its input.

Details

The traversed child is determined by calculating the term:

ChildIndex = int(ComplexityValue * NumChildren + 0.5)

If only two children are connected, the first is traversed only if the SoComplexityElement’s value is smaller than 0.5.

Input Fields

child

name: child, type: SoNode

Output Fields

self

name: self, type: SoNode

Parameter Fields

Hidden Fields

whichChild

name: whichChild, type: Integer, default: -1