Elastic potentials on piecewise smooth surfaces