From 96dd106f61d3dd683fc1acfc19e1fbc25af0204c Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Sat, 17 Nov 2012 10:40:15 +0100 Subject: [PATCH] Initial work for limiting vibrations --- lib/Slic3r/Config.pm | 8 ++++++++ lib/Slic3r/GUI/Tab.pm | 4 ++++ 2 files changed, 12 insertions(+) diff --git a/lib/Slic3r/Config.pm b/lib/Slic3r/Config.pm index 0bf7d7e95..6969633f8 100644 --- a/lib/Slic3r/Config.pm +++ b/lib/Slic3r/Config.pm @@ -410,6 +410,14 @@ our $Options = { type => 'f', default => 1, }, + 'vibration_limit' => { + label => 'Vibration limit', + tooltip => 'This experimental option will slow down those parts hitting the configured frequency limit. The purpose of limiting vibrations is to avoid mechanical resonance.', + sidetext => 'Hz', + cli => 'vibration-limit=f', + type => 'f', + default => 15, + }, # print options 'perimeters' => { diff --git a/lib/Slic3r/GUI/Tab.pm b/lib/Slic3r/GUI/Tab.pm index e1469053c..b9c445c59 100644 --- a/lib/Slic3r/GUI/Tab.pm +++ b/lib/Slic3r/GUI/Tab.pm @@ -634,6 +634,10 @@ sub build { }, ], }, + { + title => 'Advanced', + options => [qw(vibration_limit)], + }, ]); $self->add_options_page('Custom G-code', 'cog.png', optgroups => [