I am trying to model a folded plate structure so far I have followed the script in the uploaded image to get the folded geometry but I’m unsure how to introduce secondary folds into the structure, like the image on the left in the example.
Please note that the resulting data tree, that contains the polylines of the folds, is structured by row, column, module, and fold (left or right). Each module has a right (index 0) and mirrored, left (index 1) fold.
For example, the two polylines of the tree branch at path {1;2;0} represent the right fold (index 0) of the third module (index 2) in row 2 (index 1). Remember that list indexing starts at 0!