mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-11-02 20:51:23 -07:00 
			
		
		
		
	Infill refactoring and cleanup complete
This commit is contained in:
		
							parent
							
								
									d928f005e6
								
							
						
					
					
						commit
						36d24ccb0b
					
				
					 7 changed files with 108 additions and 162 deletions
				
			
		| 
						 | 
				
			
			@ -118,7 +118,7 @@ sub subdivide {
 | 
			
		|||
# returns false if the polyline is too tight to be printed
 | 
			
		||||
sub is_printable {
 | 
			
		||||
    my $self = shift;
 | 
			
		||||
    my ($flow) = @_;
 | 
			
		||||
    my ($width) = @_;
 | 
			
		||||
    
 | 
			
		||||
    # try to get an inwards offset
 | 
			
		||||
    # for a distance equal to half of the extrusion width;
 | 
			
		||||
| 
						 | 
				
			
			@ -129,7 +129,7 @@ sub is_printable {
 | 
			
		|||
    # detect them and we would be discarding them.
 | 
			
		||||
    my $p = $self->clone;
 | 
			
		||||
    $p->make_counter_clockwise;
 | 
			
		||||
    return $p->offset(-$flow->scaled_width / 2) ? 1 : 0;
 | 
			
		||||
    return $p->offset(-$width / 2) ? 1 : 0;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
sub is_valid {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue