A Topological Constraint on the Atomic Structure of Quasicrystals