mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-11-02 20:51:23 -07:00 
			
		
		
		
	Reapply correct optimization for simplifiying fill_surfaces before performing the offset. #1325
This commit is contained in:
		
							parent
							
								
									9433048873
								
							
						
					
					
						commit
						e29aca3553
					
				
					 5 changed files with 40 additions and 12 deletions
				
			
		| 
						 | 
				
			
			@ -150,12 +150,14 @@ sub collapse_ex {
 | 
			
		|||
 | 
			
		||||
sub simplify_polygon {
 | 
			
		||||
    my ($polygon, $pft) = @_;
 | 
			
		||||
    return @{ Math::Clipper::simplify_polygon($polygon, $pft // PFT_NONZERO) };
 | 
			
		||||
    return map Slic3r::Polygon->new(@$_),
 | 
			
		||||
        @{ Math::Clipper::simplify_polygon($polygon, $pft // PFT_NONZERO) };
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
sub simplify_polygons {
 | 
			
		||||
    my ($polygons, $pft) = @_;
 | 
			
		||||
    return @{ Math::Clipper::simplify_polygons($polygons, $pft // PFT_NONZERO) };
 | 
			
		||||
    return map Slic3r::Polygon->new(@$_),
 | 
			
		||||
        @{ Math::Clipper::simplify_polygons($polygons, $pft // PFT_NONZERO) };
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
sub traverse_pt {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue