How to make a folding metal cup on Solidworks?

The cup basically works because it is made of flexible Silicon but I want to make it with rigid bodies, what assembly mechanisms could work?

SolidworksAssemblies