SoPathSwitch – group node that traverses only when traversed along a given path
SoPathSwitch is a group node that traverses its children only if the current traversal path matches the
SoPath in the
path field. This can be used, for example, to affect only one instance of a subgraph. The
path field contains
the path up to (but not including) the
SoPathSwitch. The path need not go all the way back to the root; if it does not, then only the number of ancestors that are in the path are compared to see if the children should
be traversed. A NULL path means that the children are never traversed.