Slic3r - Can I add new infill patterns?

12

Slic3r comes with a handful of infill patterns/algorithms, including Rectilinear, Hexagon, 3D Hexagon, Concentric, and Hilbert Curve.

Are there any patterns/algorithms already made and available that I can add to Slic3r? If so, how can I add them in?

Martin Carney

Posted 2016-03-14T22:55:19.037

Reputation: 1 426

Answers

11

Although the core of Slic3r is written in C++ a lot of other components such as infill generation are written in Perl. Since Slic3r is open source there is nothing stopping you from writing your own infill module in Perl and recompiling your own version of Slic3r.

If your considering doing this you can find the existing infill code in the Github repository at

https://github.com/alexrj/Slic3r/tree/master/lib/Slic3r/Fill

Instructions on how to run from source can be found at

http://slic3r.org/download

Here is a commit where a new infill pattern is added. This should show you all the parts of the codebase that must be modified to add a new infill model (some trivial C++ modifications appear to be necessary in addition to the Perl code)

https://github.com/alexrj/Slic3r/commit/2811af349ae17230a525ddcf819b1ddffaa250c9

Kevin Morse

Posted 2016-03-14T22:55:19.037

Reputation: 1 483