The geometry of oriented cubes