You are presented with a sequence of complex geometric patterns. What is the logic behind the next shape in the sequence?