mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-30 20:21:12 -06:00 
			
		
		
		
	Take overlap into account for external dimensions
This commit is contained in:
		
							parent
							
								
									569e737ae1
								
							
						
					
					
						commit
						4bee1a12b8
					
				
					 1 changed files with 8 additions and 1 deletions
				
			
		|  | @ -124,7 +124,14 @@ sub make_surfaces { | ||||||
|      |      | ||||||
|     # the contours must be offsetted by half extrusion width inwards |     # the contours must be offsetted by half extrusion width inwards | ||||||
|     { |     { | ||||||
|         my $distance = scale $Slic3r::flow_width / 2; |         my $distance = $Slic3r::flow_width / 2; | ||||||
|  |         if ($Slic3r::overlap_factor) { | ||||||
|  |             # our overlap is done by increasing the flow; however external perimeters will grow  | ||||||
|  |             # outwards, so we offset by the correct amount | ||||||
|  |             $distance = ($Slic3r::flow_width + $Slic3r::overlap_factor * $Slic3r::layer_height * (1 - PI/4)) / 2; | ||||||
|  |         } | ||||||
|  |         $distance = scale $distance; | ||||||
|  |          | ||||||
|         my @surfaces = @{$self->slices}; |         my @surfaces = @{$self->slices}; | ||||||
|         @{$self->slices} = (); |         @{$self->slices} = (); | ||||||
|         foreach my $surface (@surfaces) { |         foreach my $surface (@surfaces) { | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Alessandro Ranellucci
						Alessandro Ranellucci