I am trying to create a script for the yoshimura pattern (origami) and am stuck within my script. I have built up the script so it is completely parametric, starting off with the creation of a base module and then copying these into a pattern. Now copying in the x direction is easy since the kinematics remain the same, however copying to the y direction gives problems as when folding this pattern it automatically should fold into a barrel vault. This means there is a rotation needed between each row of modules in the y direction. Does anybody know how to do this in a way that it stays adjustable to the amount of modules used in both x and y direction? Attached some images of what the problem is and what is should look like, also attached the gh script.
Thanks in advance!
Yoshimura forum.gh (19.4 KB)