mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-11-02 20:51:23 -07:00 
			
		
		
		
	Revert 2bcac88683 by setting the scale factor manually to 1. #720
				
					
				
			This commit is contained in:
		
							parent
							
								
									d0bee4bf41
								
							
						
					
					
						commit
						49916b6178
					
				
					 2 changed files with 3 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -14,12 +14,12 @@ our $clipper = Math::Clipper->new;
 | 
			
		|||
 | 
			
		||||
sub safety_offset {
 | 
			
		||||
    my ($polygons, $factor) = @_;
 | 
			
		||||
    return Math::Clipper::offset($polygons, $factor || (scale 1e-05), 100000, JT_MITER, 2);
 | 
			
		||||
    return Math::Clipper::offset($polygons, $factor || (scale 1e-05), 1, JT_MITER, 2);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
sub offset {
 | 
			
		||||
    my ($polygons, $distance, $scale, $joinType, $miterLimit) = @_;
 | 
			
		||||
    $scale      ||= 100000;
 | 
			
		||||
    $scale      ||= 1;
 | 
			
		||||
    $joinType   = JT_MITER if !defined $joinType;
 | 
			
		||||
    $miterLimit ||= 2;
 | 
			
		||||
    
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue