Warps boring, planar G-code from Slic3r (or any other slicer) into wavy shapes. This repository accompanies the corresponding Hackaday article.
; some_parameter = 2in start or end G-code (or anywhere else)
$parameters{"some_parameter"} in the script
; wave_amplitude = 2.0[mm] the maximum amplitude of the wavyness
; wave_length = 20.0[mm] the wave length in xy direction of the waves
; wave_length_2 = 200.0[mm] an additional wave length parameter, currently only used for testing the wing function
; wave_in = 0.4[mm] the z-position where it starts getting wavy, should be somewhere above the first layer
; wave_out = 30.0[mm] the z-position where it stops beeing wavy
; wave_ramp = 10.0[mm] the length of the transition between not wavy at all and maximum wavyness
; wave_max_segment_length = 1.0# [mm] max. length of the wave segments, smaller values give a better approximation
; wave_digits = 4[1] accuracy of output G-code
; wave_function = wave[String/Perl] wave function, can be "wave", "wing", or any Perl expression (i.e.
abs($x-$paramters{"bed_center_x"})), which may make use of
$xor
$parameters{"bed_center_x"}as well as any other user defined parameter
Math:Roundmodule is installed (Linux and OSX
cpan Math::Round/ Windows either
Start Menu -> All Apps -> Strawberry Perl -> CPAN Clientor
ppm install Math:Round). If you happen to use Active Perl, you'll probably need a Business License for this module.
Slic3r -> Preferences -> Modeto
Expert
; start of printto the beginning of your G-code (ideally at the end of your start G-code)
; end of printto the end of your G-code (ideally at the beginning of your end G-code)
Slic3r -> Print Settings -> Output options -> Post-processing scripts(no /~ allowed)
Slic3r -> Printer Settings -> General -> Advanced -> Use relative E distancesis checked
Slic3r -> Print Settings -> Layers and perimeters -> Vertical shells -> Spiral vase.
; start of printand
; end of printare in absolute mode
Slic3r -> Print Settings -> Output options -> Output file -> Verbose G-code
chmod 755 non-planar-layer-fdm.pl
The example folder contains additional examples with instructions. Here are a few impressions:
Slic3r -> Print Settings -> Layers and perimeters -> Vertical shells -> Spiral vase? This option is currently incompatible with the script.
Slic3r -> Printer Settings -> General -> Advanced -> Use relative E distances?
chmod 755 non-planar-layer-fdm.pl?
This is a work in progress. Any suggestions are heavily welcome. All scripts in this repository are licensed under the GNU Affero General Public License, version 3. Created by Moritz Walter 2016.