Don't increase flow for overlapping purposes when bridging

This commit is contained in:
Alessandro Ranellucci 2011-12-16 10:53:22 +01:00
parent f5eb4f03e1
commit 8e04d763f4

View File

@ -122,8 +122,12 @@ sub extrude {
my $h = $path->depth_layers * $Slic3r::layer_height;
$h = $w if $path->role eq 'bridge';
# calculate additional flow for overlapping
my $overlap_area = $Slic3r::overlap_factor * (($Slic3r::layer_height**2) - ($Slic3r::layer_height**2) / 4 * PI);
$overlap_area = 0 if $path->role eq 'bridge';
my $e = $Slic3r::resolution
* ($w * $h + ($Slic3r::layer_height**2) / 4 * (PI - 4) + $Slic3r::overlap_factor * (($Slic3r::layer_height**2) - ($Slic3r::layer_height**2) / 4 * PI))
* ($w * $h + ($Slic3r::layer_height**2) / 4 * (PI - 4) + $overlap_area)
* $Slic3r::extrusion_multiplier
* (4 / (($Slic3r::filament_diameter ** 2) * PI));