CUBE(6D) CUBE(6D)
NAME
cube - real-time display of famous cube puzzle
SYNOPSIS
/usr/demos/cube
DESCRIPTION
Cube displays a moving, rotating, 3-D model of the well-
known Rubik's cube puzzle. As the cube changes, the
viewpoint translates in and out and moves around and around
the object. Hidden surfaces are removed in real time. The
mouse valuators and buttons control the display.
To change the display, press the right mouse button to
display a popup menu. Move the cursor until the menu option
you select is highlighted and release the button. A menu
option may have an arrow which indicates a rollover menu is
available for that menu option. To bring up a rollover
menu, continue holding down the right mouse button and move
the cursor to the left or right of the currently highlighted
menu entry. The rollover menu will overlap the first pop-up
menu, and the choices on this overlapping menu will be
active.
To get rid of all menus without changing the display, move
the cursor clear of all menus and release the button.
Automatic cube operation
To operate the cube, select the cube window for input.
Press and hold the right mouse button. A menu of operations
appears. Move the cursor to the menu entry for the desired
mode and release the right mouse button to select it. The
rotate mode makes the cube alter itself while the
viewpoint's altitude and azimuth change. Translate makes
the viewpoint move back and forth. Both and freeze do as
one would expect.
Any automatic motion will continue with the system
unattended. This allows the program to be used as a stress
test for the geometry system.
Manual cube operation
First select Freeze. The cube will come to rest as soon as
its current internal motion is complete.
The left and middle mouse buttons allow the user to manually
manipulate the cube. To rotate the surface of the cube, put
the cursor on the desired surface. Initially, the left
mouse button rotates a surface of the cube counterclockwise.
To reset the left mouse button to rotate surfaces clockwise,
use the right mouse button to bring forth the pop-up menu.
Page 1 (last mod. 8/20/87)
CUBE(6D) CUBE(6D)
One of the choices on the pop-up menu is labeled left mouse
with an arrow next to it. This menu entry has a rollover
menu. There are two choices on this rollover menu:
clockwise and counter clockwise. The left mouse button will
be tied to whichever function you choose from this menu.
The middle mouse button has two modes. In its initial mode,
pressing the middle mouse button and moving the mouse
changes the viewing altitude and azimuth. In effect, this
turns the cube around and brings new surfaces into view.
The middle mouse button can be tied to distance and field of
view rather than altitude and azimuth. Once again, use the
right mouse button to bring forth the pop-up menu. This
time, find the menu entry marked middle mouse and move to
the side of the highlighted entry to bring up the rollover
menu. The middle menu button will be tied to the chosen
function.
Kill terminates the program. Reset initializes the program
and, incidentally, solves the cube.
AUTHORS
Herb Kuta and Kurt Akeley
HARDWARE REQUIREMENTS
Eight bitplanes and 1.5 Megabytes of memory are necessary.
ORIGIN
Silicon Graphics, Inc.
Page 2 (last mod. 8/20/87)