mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-31 04:31:15 -06:00 
			
		
		
		
	Restored a little overlap between perimeters and infill (we're only explicitely overlapping in the direction of infill lines, because side overlap is handled by the flow logic in Extruder.pm)
This commit is contained in:
		
							parent
							
								
									2e013e72e8
								
							
						
					
					
						commit
						18cfc15ead
					
				
					 1 changed files with 7 additions and 1 deletions
				
			
		|  | @ -30,6 +30,7 @@ sub fill_surface { | ||||||
|         $distance_between_lines += $extra_space / ($number_of_lines - 1) if $number_of_lines > 1; |         $distance_between_lines += $extra_space / ($number_of_lines - 1) if $number_of_lines > 1; | ||||||
|         $flow_width = unscale $distance_between_lines; |         $flow_width = unscale $distance_between_lines; | ||||||
|     } |     } | ||||||
|  |     my $overlap_distance = $min_spacing * $Slic3r::overlap_factor; | ||||||
|      |      | ||||||
|     my @paths = (); |     my @paths = (); | ||||||
|     my $x = $bounding_box->[X1]; |     my $x = $bounding_box->[X1]; | ||||||
|  | @ -40,7 +41,12 @@ sub fill_surface { | ||||||
|             $vertical_line->[A][X] -= $line_oscillation; |             $vertical_line->[A][X] -= $line_oscillation; | ||||||
|             $vertical_line->[B][X] += $line_oscillation; |             $vertical_line->[B][X] += $line_oscillation; | ||||||
|         } |         } | ||||||
|         push @paths, @{ $expolygon->clip_line($vertical_line) }; |         my @clipped_lines = @{ $expolygon->clip_line($vertical_line) }; | ||||||
|  |         for (@clipped_lines) { | ||||||
|  |             $_->[0][Y] += $overlap_distance; | ||||||
|  |             $_->[-1][Y] -= $overlap_distance; | ||||||
|  |         } | ||||||
|  |         push @paths, @clipped_lines; | ||||||
|         $x += $distance_between_lines; |         $x += $distance_between_lines; | ||||||
|     } |     } | ||||||
|      |      | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Alessandro Ranellucci
						Alessandro Ranellucci