The exact critical Casimir force between periodically deformed boundaries of a 2D semi-infinite strip is obtained for conformally invariant classical systems. Only two parameters (conformal charge and scaling dimension of a boundary changing operator), along withthe solution of an electrostatic problem, determine the Casimir force, rendering the theory practically applicable to any shape and arrangement. The attraction between any two mirror symmetric objects follows directly from our general result. The possibility of purely shape induced reversal of the force, as well as occurrence of stable equilibrium points, is demonstrated for certain conformally invariant models, including the tricritical Ising model.

VL - 743 JO - Physics Letters B ER -