Hold down the LEFT mouse button and move the mouse to rotate around the currently selected (red) cube.
Hold down the RIGHT mouse button and move the mouse up and down to zoom in and out on the currently selected cube.
Press t to toggle between the cube mesh and the subdivided mesh.
Press w to toggle the wireframe cubes on and off.
Press d to move to the previous cube in the structure, press f to move to the next.
Note: the order of traversal will be the order in which they were created and NOT necessarily the order in which they appear.
When adding a cube, it will be added next to the indicated side of the currently selected cube.
8 is +Y, 2 is -Y, 4 is -X, 6 is +X, 9 is -Z, 3 is +Z.
The newly added cube will become the currently selected cube.
Use the arrow keys to move the currently selected cube along the X and Y axes, use the o and l keys to move along the Z axis.
Note that the camera will remain aimed at the cube as you move it.
Use the [ and ] keys to change the currently selected cube's scale or rotation, depending on the current mode.
] increases the scale or rotates by a positive angle, [ decreases scale or rotates by a negative angle.
z switches to scaling mode, x switches to X-rotation mode, c switches to Y-rotation mode, and v switches to Z-rotation mode.
The current mode is always displayed in the upper right hand corner of the applet.
Source code: subdivision05
Built with Processing