1. A method comprising: identifying, from design data, pairs of neighboring periodical sub-arrays matching a proximity criterion and characterized by compatible periodicity in a given direction if a least common multiple of periodicity values characterizing said sub-arrays in said given direction is below a predefined threshold, wherein the design data characterizes periodical sub-arrays in one or more dies; generating for each identified pair of neighboring periodical sub-arrays a rectangle defining a respective candidate stitch; identifying periodical stitches among the candidate stitches; aggregating, by a computer, the periodical stitches and the periodical sub-arrays to create periodical arrays; and causing a recipe to be generated using the periodical arrays created based on the design data.