Reduce overlap for bridges. #1090

This commit is contained in:
Alessandro Ranellucci 2013-05-16 12:34:24 +02:00
parent 55071e544f
commit 521d668712
2 changed files with 2 additions and 1 deletions

View File

@ -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;

View File

@ -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;