mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-11-02 20:51:23 -07:00 
			
		
		
		
	Ported offset() and offset2()
This commit is contained in:
		
							parent
							
								
									bf8c799685
								
							
						
					
					
						commit
						c7b6818ccf
					
				
					 15 changed files with 152 additions and 81 deletions
				
			
		| 
						 | 
				
			
			@ -550,7 +550,7 @@ sub horizontal_projection {
 | 
			
		|||
    
 | 
			
		||||
    my $scale_vector = Math::Clipper::integerize_coordinate_sets({ bits => 32 }, @f);
 | 
			
		||||
    $_->make_counter_clockwise for @f;  # do this after scaling, as winding order might change while doing that
 | 
			
		||||
    my $union = union_ex([ Slic3r::Geometry::Clipper::offset(\@f, 10000) ]);
 | 
			
		||||
    my $union = union_ex(Slic3r::Geometry::Clipper::offset(\@f, 10000));
 | 
			
		||||
    $union = [ map $_->arrayref, @$union ];
 | 
			
		||||
    Math::Clipper::unscale_coordinate_sets($scale_vector, $_) for @$union;
 | 
			
		||||
    return $union;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue