mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-11-02 20:51:23 -07:00 
			
		
		
		
	Always fix self-intersecting polygons that Douglas-Peucker might return
This commit is contained in:
		
							parent
							
								
									dc0f706789
								
							
						
					
					
						commit
						33b40eda18
					
				
					 14 changed files with 85 additions and 55 deletions
				
			
		| 
						 | 
				
			
			@ -43,8 +43,8 @@ use Slic3r::Test;
 | 
			
		|||
        $_->slice(keep_meshes => 1) for @{$self->objects};
 | 
			
		||||
        $_->make_perimeters for @{$self->objects};
 | 
			
		||||
        foreach my $layer (map @{$_->layers}, @{$self->objects}) {
 | 
			
		||||
            $_->simplify(&Slic3r::SCALED_RESOLUTION)
 | 
			
		||||
                for @{$layer->slices}, (map $_->expolygon, map @{$_->slices}, @{$layer->regions});
 | 
			
		||||
            @$_ = map $_->simplify(&Slic3r::SCALED_RESOLUTION), @$_
 | 
			
		||||
                for $layer->slices, (map $_->slices, @{$layer->regions});
 | 
			
		||||
        }
 | 
			
		||||
        $_->detect_surfaces_type for @{$self->objects};
 | 
			
		||||
        $_->prepare_fill_surfaces for map @{$_->regions}, map @{$_->layers}, @{$self->objects};
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue