mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-30 20:21:12 -06:00 
			
		
		
		
	Restore correct ordering of concentric infill loops, preventing them from being reordered during G-code generation
This commit is contained in:
		
							parent
							
								
									25cddfe446
								
							
						
					
					
						commit
						6cab5668e3
					
				
					 6 changed files with 24 additions and 4 deletions
				
			
		|  | @ -6,6 +6,8 @@ extends 'Slic3r::Fill::Base'; | |||
| use Slic3r::Geometry qw(scale unscale X); | ||||
| use Slic3r::Geometry::Clipper qw(offset offset2 union_pt_chained); | ||||
| 
 | ||||
| sub no_sort { 1 } | ||||
| 
 | ||||
| sub fill_surface { | ||||
|     my $self = shift; | ||||
|     my ($surface, %params) = @_; | ||||
|  | @ -36,7 +38,7 @@ sub fill_surface { | |||
|     @loops = map Slic3r::Polygon->new(@$_), | ||||
|         reverse @{union_pt_chained(\@loops)}; | ||||
|      | ||||
|     # order paths using a nearest neighbor search | ||||
|     # split paths using a nearest neighbor search | ||||
|     my @paths = (); | ||||
|     my $last_pos = Slic3r::Point->new(0,0); | ||||
|     foreach my $loop (@loops) { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Alessandro Ranellucci
						Alessandro Ranellucci