<p>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.</p>

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

<p><a href="https://github.com/alexrj/Slic3r/tree/master/lib/Slic3r/Fill">https://github.com/alexrj/Slic3r/tree/master/lib/Slic3r/Fill</a></p>

<p>Instructions on how to run from source can be found at</p>

<p><a href="http://slic3r.org/download">http://slic3r.org/download</a></p>

<p>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)</p>

<p><a href="https://github.com/alexrj/Slic3r/commit/2811af349ae17230a525ddcf819b1ddffaa250c9">https://github.com/alexrj/Slic3r/commit/2811af349ae17230a525ddcf819b1ddffaa250c9</a></p>

CC BY-SA 3.0
2016-03-15T00:27:42.303Z
2016-03-15T00:27:42.303Z
Kevin Morse
<p>Slic3r comes with a handful of infill patterns/algorithms, including Rectilinear, Hexagon, 3D Hexagon, Concentric, and Hilbert Curve.</p>

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

<slic3r><infill>
Slic3r - Can I add new infill patterns?
Marsh
# Slic3r - Can I add new infill patterns?

(Asked by: username_0 on 2016-03-14)

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?

**Tags:** slic3r, infill


---

## 1 answers

### Answer by username_1 on 2016-03-15. Score: 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>


---

