mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-11-02 20:51:23 -07:00 
			
		
		
		
	New implementation of the little inwards move before leaving a loop. #186
This commit is contained in:
		
							parent
							
								
									283809f5c2
								
							
						
					
					
						commit
						f001374c6e
					
				
					 4 changed files with 42 additions and 6 deletions
				
			
		| 
						 | 
				
			
			@ -31,12 +31,20 @@ sub is_counter_clockwise {
 | 
			
		|||
 | 
			
		||||
sub make_counter_clockwise {
 | 
			
		||||
    my $self = shift;
 | 
			
		||||
    $self->reverse if !$self->is_counter_clockwise;
 | 
			
		||||
    if (!$self->is_counter_clockwise) {
 | 
			
		||||
        $self->reverse;
 | 
			
		||||
        return 1;
 | 
			
		||||
    }
 | 
			
		||||
    return 0;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
sub make_clockwise {
 | 
			
		||||
    my $self = shift;
 | 
			
		||||
    $self->reverse if $self->is_counter_clockwise;
 | 
			
		||||
    if ($self->is_counter_clockwise) {
 | 
			
		||||
        $self->reverse;
 | 
			
		||||
        return 1;
 | 
			
		||||
    }
 | 
			
		||||
    return 0;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
sub merge_continuous_lines {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue