mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-31 04:31:15 -06:00 
			
		
		
		
	Optimization: simplify fill_surfaces before the offset operation
This commit is contained in:
		
							parent
							
								
									d06ac3e31e
								
							
						
					
					
						commit
						3a046e3411
					
				
					 1 changed files with 5 additions and 6 deletions
				
			
		|  | @ -209,12 +209,11 @@ sub make_perimeters { | ||||||
|         # and then we offset back and forth by the infill spacing to only consider the |         # and then we offset back and forth by the infill spacing to only consider the | ||||||
|         # non-collapsing regions |         # non-collapsing regions | ||||||
|         push @{ $self->fill_surfaces }, |         push @{ $self->fill_surfaces }, | ||||||
|             map $_->simplify(&Slic3r::SCALED_RESOLUTION), |             offset2_ex( | ||||||
|                 offset2_ex( |                 [ map $_->simplify(&Slic3r::SCALED_RESOLUTION), @last ], | ||||||
|                     \@last, |                 -($perimeter_spacing/2 + $infill_spacing), | ||||||
|                     -($perimeter_spacing/2 + $infill_spacing), |                 +$infill_spacing, | ||||||
|                     +$infill_spacing, |             ); | ||||||
|                 ); |  | ||||||
|     } |     } | ||||||
|      |      | ||||||
|     $self->_fill_gaps(\@gaps); |     $self->_fill_gaps(\@gaps); | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Alessandro Ranellucci
						Alessandro Ranellucci