Shape grammar is a formal exploration of visual subdivision and geometric transformation to create complex patterns.