mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-31 12:41:20 -06:00 
			
		
		
		
	Refactor extrusion logic in a dedicated class
This commit is contained in:
		
							parent
							
								
									415d1a5170
								
							
						
					
					
						commit
						081f65852d
					
				
					 4 changed files with 158 additions and 110 deletions
				
			
		|  | @ -86,8 +86,7 @@ sub make_perimeter { | |||
|         for (my $i = $Slic3r::skirts - 1; $i >= 0; $i--) { | ||||
|             my $distance = ($Slic3r::skirt_distance + ($Slic3r::flow_width * $i)) / $Slic3r::resolution; | ||||
|             my $outline = offset([$convex_hull_points], $distance, 0.1, JT_ROUND); | ||||
|             push @{$outline->[0]}, $outline->[0][0]; # repeat first point as last to complete the loop | ||||
|             push @{ $layer->skirts }, Slic3r::ExtrusionPath->cast([ @{$outline->[0]} ]); | ||||
|             push @{ $layer->skirts }, Slic3r::ExtrusionLoop->cast([ @{$outline->[0]} ]); | ||||
|         } | ||||
|     } | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Alessandro Ranellucci
						Alessandro Ranellucci