Structure of multidimensional patterns