Using special-purpose groups
Creating switch groups
- Switch extends Group and
selects zero, one, or multiple children to render or process
- Child choice can be by number, or by a bit mask
- Only selected children are rendered (shapes) or
processed (lights, fog, backgrounds, behaviors)
- Similar to a Java "switch" statement
- Java 3D is still free to render children in any order