Three-dimensional labyrinths