Optimizing shell structures