mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-30 20:21:12 -06:00 
			
		
		
		
	Ported offset() and offset2()
This commit is contained in:
		
							parent
							
								
									bf8c799685
								
							
						
					
					
						commit
						c7b6818ccf
					
				
					 15 changed files with 152 additions and 81 deletions
				
			
		|  | @ -29,9 +29,9 @@ sub fill_surface { | |||
|      | ||||
|     # compensate the overlap which is good for rectilinear but harmful for concentric | ||||
|     # where the perimeter/infill spacing should be equal to any other loop spacing | ||||
|     my @loops = my @last = offset($expolygon, -&Slic3r::INFILL_OVERLAP_OVER_SPACING * $min_spacing / 2); | ||||
|     my @loops = my @last = @{offset($expolygon, -&Slic3r::INFILL_OVERLAP_OVER_SPACING * $min_spacing / 2)}; | ||||
|     while (@last) { | ||||
|         push @loops, @last = offset2(\@last, -1.5*$distance,  +0.5*$distance); | ||||
|         push @loops, @last = @{offset2(\@last, -1.5*$distance,  +0.5*$distance)}; | ||||
|     } | ||||
|      | ||||
|     # generate paths from the outermost to the innermost, to avoid  | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Alessandro Ranellucci
						Alessandro Ranellucci