Shape optimisation of a second skin