From 8e04d763f4992fbd25ea1f023183a2835d1d4937 Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Fri, 16 Dec 2011 10:53:22 +0100 Subject: [PATCH] Don't increase flow for overlapping purposes when bridging --- lib/Slic3r/Extruder.pm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/Slic3r/Extruder.pm b/lib/Slic3r/Extruder.pm index 40c3c6ae9..a2db2273f 100644 --- a/lib/Slic3r/Extruder.pm +++ b/lib/Slic3r/Extruder.pm @@ -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));