mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-11-02 20:51:23 -07:00 
			
		
		
		
	Fix tests in stable after stronger type checking was applied
This commit is contained in:
		
							parent
							
								
									a64f7aa8df
								
							
						
					
					
						commit
						4da71e8f13
					
				
					 1 changed files with 4 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -42,7 +42,10 @@ sub grow {
 | 
			
		|||
# original orientation
 | 
			
		||||
sub simplify {
 | 
			
		||||
    my $self = shift;
 | 
			
		||||
    return @{Slic3r::Geometry::Clipper::simplify_polygons([ $self->SUPER::simplify(@_) ])};
 | 
			
		||||
    my $tolerance = shift || 10;
 | 
			
		||||
    
 | 
			
		||||
    my $simplified = Boost::Geometry::Utils::linestring_simplify($self->pp, $tolerance);
 | 
			
		||||
    return @{Slic3r::Geometry::Clipper::simplify_polygons([ $simplified ])};
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
# this method subdivides the polygon segments to that no one of them
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue