Swarming Rigid Bodies: Geometry and Topology