Programmable mechanical metamaterials: the role of geometry