Symplectic and antiplectic waves in an array of beating cilia attached to a closed body.