Compute bridge overlap as twice the total thickness of perimeters

This commit is contained in:
Alessandro Ranellucci 2011-11-17 10:41:20 +01:00
parent c8ce989962
commit 1a066caecc
2 changed files with 2 additions and 2 deletions

View File

@ -64,7 +64,6 @@ our $flow_width;
# print options
our $perimeters = 3;
our $solid_layers = 3;
our $bridge_overlap = 3; # mm
our $perimeter_infill_overlap_ratio = 0.15; # factor for flow width
our $fill_pattern = 'rectilinear';
our $solid_fill_pattern = 'rectilinear';

View File

@ -438,7 +438,8 @@ sub process_bridges {
# now, extend our bridge by taking a portion of supporting surfaces
{
# offset the bridge by the specified amount of mm
my $bridge_offset = ${ offset([$contour], $Slic3r::bridge_overlap / $Slic3r::resolution, $Slic3r::resolution * 100, JT_MITER, 2) }[0];
my $bridge_overlap = 2 * $Slic3r::perimeters * $Slic3r::flow_width / $Slic3r::resolution;
my $bridge_offset = ${ offset([$contour], $bridge_overlap, $Slic3r::resolution * 100, JT_MITER, 2) }[0];
# calculate the new bridge
my $intersection = intersection_ex(