mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-11-02 20:51:23 -07:00 
			
		
		
		
	Take into account that $layerm->perimeters also contains ExtrusionPath objects. #1991
This commit is contained in:
		
							parent
							
								
									1667d1826d
								
							
						
					
					
						commit
						8ded268e7e
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -169,7 +169,9 @@ sub contact_area {
 | 
			
		|||
                        my $lower_grown_slices = offset([ map @$_, @{$lower_layer->slices} ], +scale($nozzle_diameter/2));
 | 
			
		||||
                        
 | 
			
		||||
                        # TODO: split_at_first_point() could split a bridge mid-way
 | 
			
		||||
                        my @overhang_perimeters = map $_->polygon->split_at_first_point, @{$layerm->perimeters};
 | 
			
		||||
                        my @overhang_perimeters =
 | 
			
		||||
                            map { $_->isa('Slic3r::ExtrusionLoop') ? $_->polygon->split_at_first_point : $_->polyline->clone }
 | 
			
		||||
                            @{$layerm->perimeters};
 | 
			
		||||
                        
 | 
			
		||||
                        # workaround for Clipper bug, see Slic3r::Polygon::clip_as_polyline()
 | 
			
		||||
                        $_->[0]->translate(1,0) for @overhang_perimeters;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue