Open Inventor Release 2023.2.3
 
Loading...
Searching...
No Matches
SoMultiPathSwitch usage

VSG extension Demonstrate SoMultiPathSwitch usage.

This example demonstrates the SoMultiPathSwitch node behavior. In this example, a same sub-scene graph is used several times. When user pick a sphere, MultiPathSwitch node is updated so that the Material is changed for the current traversal path. Contrary to SoPathSwitch, SoMultiPathSwitch allows to register several path to traverse, and consequently, in this example, several sphere can be highlight.

FILES:

    • Inventor/Switch/MultiPathSwitch/MultiPathSwitch.cxx
    • Inventor/Switch/MultiPathSwitch/scenegraph.iv

SEE ALSO

SoSwitch SoMultiSwitch SoInteractiveSwitch SoPathSwitch SoMultiPathSwitch

SCREENSHOT: