mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-11-02 20:51:23 -07:00 
			
		
		
		
	Optimization: Remove useless calls to union()
This commit is contained in:
		
							parent
							
								
									10ab3bbb86
								
							
						
					
					
						commit
						09684c67c2
					
				
					 2 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -150,7 +150,7 @@ sub _merge_loops {
 | 
			
		|||
        # of the loops, since the Orientation() function provided by Clipper
 | 
			
		||||
        # would do the same, thus repeating the calculation
 | 
			
		||||
        $slices = ($area[$i] >= 0)
 | 
			
		||||
            ? union([ $loops->[$i], @$slices ])
 | 
			
		||||
            ? [ $loops->[$i], @$slices ]
 | 
			
		||||
            : diff($slices, [$loops->[$i]]);
 | 
			
		||||
    }
 | 
			
		||||
    
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -654,7 +654,7 @@ sub discover_horizontal_shells {
 | 
			
		|||
                                    offset($too_narrow, +$margin),
 | 
			
		||||
                                    [ map $_->p, @neighbor_fill_surfaces ],
 | 
			
		||||
                                )};
 | 
			
		||||
                                $new_internal_solid = $solid = union([ @grown, @$new_internal_solid ]);
 | 
			
		||||
                                $new_internal_solid = $solid = [ @grown, @$new_internal_solid ];
 | 
			
		||||
                            } else {
 | 
			
		||||
                                # if we're printing a hollow object, we discard such small parts
 | 
			
		||||
                                $new_internal_solid = $solid = diff(
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue