Origami tuck folding simulation (quad mesh) using kangaroo

Hello everyone,
I am trying to simulate the folding process of a quad mesh inspired by the tuck folding technique developed by Tomohiro Tachi using Kangaroo,
Unfortunately, it seems that since all the faces are quadrilateral, my code does not work (or maybe there is another reason ), I would appreciate it if you can help,
Attached you can find my file,
Thanks
question_origami.gh (37.0 KB)

For quad meshes you need to also make the quads stay flat like this:
question_origami_.gh (42.0 KB)

1 Like

Thanks Daniel, that was a great help,

1 Like