I will explain how the construction of closed geodesics for certain Ricci-flat Kähler metrics on K3 surfaces is related to an open problem in electrostatics posed by Maxwell in 1873. Then, I will use recent joint work with Christopher Fillmore and Herbert Edelsbrunner to tackle both of these problems, culminating in the construction of several closed geodesics for these metrics on K3 surfaces.