IBM TJ Watson Research

IBMIndexedFaceSet2DSetIndices

IBMIndexedFaceSet2DSetIndices.mp4

Description

A test of set_colorIndex and set_coordIndex. Two IndexedFaceSet2D shapes are used; the one one the left has the set_colorIndex field replaced, the one on the right the set_coordIndex field.

The fields are replaced such that the colors appear to rotate around the shape in a clockwise direction. The shapes should appear identical at all times even though one is changed by altering the colors, the other by altering the coordinates.

The fields are replaced using TimeSensors, Conditionals and Routes in a manner identical to that described in IBMRectanglesRotating. In this case there are six conditionals (for each shape) rather than two, and the route is cycled around to activate all six conditionals in sequence.

Screenshot

Snapshot after set_colorIndex/set_coordIndex field change



Back to main index