Convexity, smoothness and moduli