diff --git a/README.markdown b/README.markdown index cb385e08d..4dc7a27fc 100644 --- a/README.markdown +++ b/README.markdown @@ -193,7 +193,7 @@ The author is Alessandro Ranellucci. --skirt-distance Distance in mm between innermost skirt and object (default: 6) --skirt-height Height of skirts to draw (expressed in layers, 0+, default: 1) - --brim-thickness Thickness of the brim that will get added to each object to help adhesion + --brim-width Width of the brim that will get added to each object to help adhesion (mm, default: 0) Transform options: diff --git a/lib/Slic3r.pm b/lib/Slic3r.pm index 72732c250..f61120370 100644 --- a/lib/Slic3r.pm +++ b/lib/Slic3r.pm @@ -154,7 +154,7 @@ our $fan_always_on = 0; our $skirts = 1; our $skirt_distance = 6; # mm our $skirt_height = 1; # layers -our $brim_thickness = 0; # mm +our $brim_width = 0; # mm # transform options our $scale = 1; diff --git a/lib/Slic3r/Config.pm b/lib/Slic3r/Config.pm index e6132af09..9d1c5402c 100644 --- a/lib/Slic3r/Config.pm +++ b/lib/Slic3r/Config.pm @@ -422,9 +422,9 @@ our $Options = { cli => 'skirt-height=i', type => 'i', }, - 'brim_thickness' => { - label => 'Brim thickness (mm)', - cli => 'brim-thickness=f', + 'brim_width' => { + label => 'Brim width (mm)', + cli => 'brim-width=f', type => 'f', }, diff --git a/lib/Slic3r/GUI/SkeinPanel.pm b/lib/Slic3r/GUI/SkeinPanel.pm index e5a9f5ce0..1a462f2de 100644 --- a/lib/Slic3r/GUI/SkeinPanel.pm +++ b/lib/Slic3r/GUI/SkeinPanel.pm @@ -57,7 +57,7 @@ sub new { }, skirt => { title => 'Skirt', - options => [qw(skirts skirt_distance skirt_height brim_thickness)], + options => [qw(skirts skirt_distance skirt_height brim_width)], }, gcode => { title => 'G-code', diff --git a/lib/Slic3r/Print.pm b/lib/Slic3r/Print.pm index 9d4221cca..1ce3aea31 100644 --- a/lib/Slic3r/Print.pm +++ b/lib/Slic3r/Print.pm @@ -461,7 +461,7 @@ sub make_skirt { sub make_brim { my $self = shift; - return unless $Slic3r::brim_thickness > 0; + return unless $Slic3r::brim_width > 0; my @islands = (); # array of polygons foreach my $obj_idx (0 .. $#{$self->objects}) { @@ -472,7 +472,7 @@ sub make_brim { } my $flow = $Slic3r::first_layer_flow || $Slic3r::flow; - my $num_loops = sprintf "%.0f", $Slic3r::brim_thickness / $flow->width; + my $num_loops = sprintf "%.0f", $Slic3r::brim_width / $flow->width; for my $i (reverse 1 .. $num_loops) { push @{$self->brim}, Slic3r::ExtrusionLoop->new( polygon => Slic3r::Polygon->new($_), @@ -567,7 +567,7 @@ sub write_gcode { $extruder->shift_y($shift[Y]); $gcode .= $extruder->set_acceleration($Slic3r::perimeter_acceleration); # skip skirt if we have a large brim - if ($layer_id < $Slic3r::skirt_height && ($layer_id != 0 || $Slic3r::skirt_distance + ($Slic3r::skirts * $Slic3r::flow->width) > $Slic3r::brim_thickness)) { + if ($layer_id < $Slic3r::skirt_height && ($layer_id != 0 || $Slic3r::skirt_distance + ($Slic3r::skirts * $Slic3r::flow->width) > $Slic3r::brim_width)) { $gcode .= $extruder->extrude_loop($_, 'skirt') for @{$self->skirt}; } $skirt_done++; diff --git a/slic3r.pl b/slic3r.pl index 2ee61fae4..e261a4e18 100755 --- a/slic3r.pl +++ b/slic3r.pl @@ -238,8 +238,8 @@ $j --skirt-distance Distance in mm between innermost skirt and object (default: $Slic3r::skirt_distance) --skirt-height Height of skirts to draw (expressed in layers, 0+, default: $Slic3r::skirt_height) - --brim-thickness Thickness of the brim that will get added to each object to help adhesion - (mm, default: $Slic3r::brim_thickness) + --brim-width Width of the brim that will get added to each object to help adhesion + (mm, default: $Slic3r::brim_width) Transform options: --scale Factor for scaling input object (default: $Slic3r::scale)