diff options
author | bubnikv <bubnikv@gmail.com> | 2016-10-04 15:38:13 +0300 |
---|---|---|
committer | bubnikv <bubnikv@gmail.com> | 2016-10-04 15:38:13 +0300 |
commit | 5268574adebb0c2cc9c6148436900dffc0346abb (patch) | |
tree | 3b75f6f666cc6da0a1ff9239873e86bff5850aab /lib | |
parent | 5bb37ad2c4f61a072282177e9a445b997bff3db1 (diff) |
Made the sheath around the base support configurable. Without the sheath
it is easier to remove the support, but the support is more fragile.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Slic3r/GUI/Tab.pm | 5 | ||||
-rw-r--r-- | lib/Slic3r/Print/SupportMaterial.pm | 3 |
2 files changed, 5 insertions, 3 deletions
diff --git a/lib/Slic3r/GUI/Tab.pm b/lib/Slic3r/GUI/Tab.pm index 7304c2f58..ec7f35c19 100644 --- a/lib/Slic3r/GUI/Tab.pm +++ b/lib/Slic3r/GUI/Tab.pm @@ -480,7 +480,7 @@ sub build { brim_width support_material support_material_threshold support_material_enforce_layers raft_layers - support_material_pattern support_material_spacing support_material_angle + support_material_pattern support_material_with_sheath support_material_spacing support_material_angle support_material_interface_layers support_material_interface_spacing support_material_contact_distance support_material_buildplate_only dont_support_bridges notes @@ -588,6 +588,7 @@ sub build { my $optgroup = $page->new_optgroup('Options for support material and raft'); $optgroup->append_single_option_line('support_material_contact_distance'); $optgroup->append_single_option_line('support_material_pattern'); + $optgroup->append_single_option_line('support_material_with_sheath'); $optgroup->append_single_option_line('support_material_spacing'); $optgroup->append_single_option_line('support_material_angle'); $optgroup->append_single_option_line('support_material_interface_layers'); @@ -826,7 +827,7 @@ sub _update { my $have_support_material = $config->support_material || $config->raft_layers > 0; my $have_support_interface = $config->support_material_interface_layers > 0; $self->get_field($_)->toggle($have_support_material) - for qw(support_material_threshold support_material_pattern + for qw(support_material_threshold support_material_pattern support_material_with_sheath support_material_spacing support_material_angle support_material_interface_layers dont_support_bridges support_material_extrusion_width support_material_contact_distance); diff --git a/lib/Slic3r/Print/SupportMaterial.pm b/lib/Slic3r/Print/SupportMaterial.pm index b1e82f088..69acd3251 100644 --- a/lib/Slic3r/Print/SupportMaterial.pm +++ b/lib/Slic3r/Print/SupportMaterial.pm @@ -592,6 +592,7 @@ sub generate_toolpaths { # prepare fillers my $pattern = $self->object_config->support_material_pattern; + my $with_sheath = $self->object_config->support_material_with_sheath; my @angles = ($self->object_config->support_material_angle); if ($pattern eq 'rectilinear-grid') { $pattern = 'rectilinear'; @@ -791,7 +792,7 @@ sub generate_toolpaths { # use the proper spacing for first layer as we don't need to align # its pattern to the other layers $filler->spacing($base_flow->spacing); - } else { + } elsif ($with_sheath) { # draw a perimeter all around support infill # TODO: use brim ordering algorithm my $mm3_per_mm = $_flow->mm3_per_mm; |