What do the repetitive patterns in a mineral form?