SoArray – group node that creates a regular IxJxK array of copies of its children
This group node traverses its children, in order, several times, creating a regular 3D array of copies of them. The number of copies in each of the three directions is specified by fields, as are the vectors
used to separate the copies in each of the three dimensions.
For example, an
SoArray node can be used to create a 2x3x4 array of copies of its children, where the separation vectors between adjacent copies in
the three array dimensions are (1,2,3), (-4,-5,-6), and (7,8,9), respectively. The base point of the array can be set to one of several values, as described in the
origin field.
Copies are traversed so that
the first dimension cycles most quickly, followed by the second, and then the third. This order is important because
SoArray sets the current switch value to N before traversing the children for the Nth time
(for use with inherited switch values - see
SoSwitch).