Skip to content

danielkitta/somato

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Somato: Soma cube animation

Somato solves and animates Piet Hein's Soma cube puzzle. From Wikipedia http://en.wikipedia.org/wiki/Soma_cube:

The Soma cube is a solid dissection puzzle invented by Piet Hein during a lecture on quantum mechanics conducted by Werner Heisenberg. Seven pieces made out of unit cubes must be assembled into a 3x3x3 cube. The pieces can also be used to make a variety of other interesting 3D shapes.

The pieces of the Soma cube consist of all possible combinations of four or fewer unit cubes, excluding all regular shapes (i.e., the 1x1x1, 1x1x2, 1x1x3, 1x1x4 and 1x2x2 cuboids). This leaves just one three-block piece and six four-block pieces, of which two form an enantiomorphic pair. A similar puzzle consisting solely of all eight four-block pieces (including the cuboids) would contain 32 unit cubes and, thus, could not be assembled into a cube.

Screenshot

Keyboard shortcuts

Shortcut Function Description
Plus Zoom in Increase zoom level
Minus Zoom out Decrease zoom level
1 Zoom 100% Restore default zoom level
Ctrl Plus Speed up Increase animation speed
Ctrl Minus Slow down Decrease animation speed
Ctrl 1 Normal speed Restore default speed
Space Pause Pause/resume animation
Left Rotate left Rotate cube leftwards
Right Rotate right Rotate cube rightwards
Up Rotate up Rotate cube upwards
Down Rotate down Rotate cube downwards
5 Reset rotation Reset to frontal view
C Auto cycle Toggle cycling through solutions
Home First Go to first solution
Page Up Previous Go to previous solution
Page Down Next Go to next solution
End Last Go to last solution
Ctrl Tab Cycle piece Cycle through cube pieces
Alt 1..7 Select piece Jump to cube piece 1..7
F Full screen Toggle full-screen mode
Esc Restore window Exit full-screen mode
O Outline Toggle geometry outline view
G Grid Toggle cube cell grid
A Anti-alias Toggle multi-sample AA
Ctrl Q Quit Quit Somato application