How do I repeat the layers of Slic3r for every 3 infill layers with different angles? (Might need some programming knowledge) I'm working on developing alternative infill layers to print at different angles, using Slic3r. Using Slic3r's rectilinear infill, printing at specific angles for 3 layers then repeat.

I'm working towards finding the code in the source code where they alternate the layers and change it to alternate it for every 3 layers.

I know I will need some C++ knowledge to fiddle around with the Slic3r's source code, but if there is someone who can point me in the right direction I would gladly appreciate it!
Slic3r is available on Github.

I think the section you'd be looking for is here