diff --git a/lib/Slic3r.pm b/lib/Slic3r.pm index 9214022f8..1dfaf8859 100644 --- a/lib/Slic3r.pm +++ b/lib/Slic3r.pm @@ -68,6 +68,7 @@ use constant SCALING_FACTOR => 0.000001; use constant RESOLUTION => 0.0125; use constant SCALED_RESOLUTION => RESOLUTION / SCALING_FACTOR; use constant OVERLAP_FACTOR => 1; +use constant BRIDGE_OVERLAP_FACTOR => 0.2; use constant SMALL_PERIMETER_LENGTH => (6.5 / SCALING_FACTOR) * 2 * PI; use constant LOOP_CLIPPING_LENGTH_OVER_SPACING => 0.15; use constant INFILL_OVERLAP_OVER_SPACING => 0.45; diff --git a/lib/Slic3r/Flow.pm b/lib/Slic3r/Flow.pm index b17b1991a..50d7cb7f9 100644 --- a/lib/Slic3r/Flow.pm +++ b/lib/Slic3r/Flow.pm @@ -97,7 +97,7 @@ sub _build_width { sub _build_spacing { my $self = shift; my $width = $self->width; - return $width + &Slic3r::OVERLAP_FACTOR * ($width * PI / 4 - $width); + return $width - (&Slic3r::BRIDGE_OVERLAP_FACTOR * $width); } 1;