The book you were reading was Volume 31 on Shelf 3 of Wall 3 of Hexagon:

 

Wall:

Shelf:

a

Volume:

A bookshelf with 32 volumes. The title of each is written on its spine.