From 521d668712590fe5c76e109a0646a09b5f98ce87 Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Thu, 16 May 2013 12:34:24 +0200 Subject: [PATCH] Reduce overlap for bridges. #1090 --- lib/Slic3r.pm | 1 + lib/Slic3r/Flow.pm | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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;