We study the smoothness of the Siciak–Zaharjuta extremal function associated to a convex body in $\mathbb{R}^{2}$ . We also prove a formula relating the complex equilibrium measure of a convex body in $\mathbb{R}^{n}$ ($n$≥2) to that of its Robin indicatrix. The main tool we use is extremal ellipses.