Foldable Chair in Grasshopper

A flat rectangle opens into a chair as the slats form the seat and backrest. See the Grasshopper definition behind the design: https://parametrichouse.com/parametric/foldable-chair/