How do cells know what shape they are?

How do cells know what shape they are?