mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-11-02 20:51:23 -07:00 
			
		
		
		
	Refactoring: use Slic3r::Geometry::BoundingBox objects everywhere
This commit is contained in:
		
							parent
							
								
									07407e5dbd
								
							
						
					
					
						commit
						ac4a0bcdd8
					
				
					 20 changed files with 105 additions and 127 deletions
				
			
		| 
						 | 
				
			
			@ -138,7 +138,7 @@ sub bounding_box {
 | 
			
		|||
    my $self = shift;
 | 
			
		||||
    
 | 
			
		||||
    # since the object is aligned to origin, bounding box coincides with size
 | 
			
		||||
    return Slic3r::Geometry::bounding_box([ [0,0], $self->size ]);
 | 
			
		||||
    return Slic3r::Geometry::BoundingBox->new_from_points([ [0,0], $self->size ]);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
sub slice {
 | 
			
		||||
| 
						 | 
				
			
			@ -1001,7 +1001,7 @@ sub generate_support_material {
 | 
			
		|||
                        $_;
 | 
			
		||||
                    }
 | 
			
		||||
                    map $_->clip_with_expolygon($expolygon),
 | 
			
		||||
                    ###map $_->clip_with_polygon($expolygon->bounding_box_polygon),  # currently disabled as a workaround for Boost failing at being idempotent
 | 
			
		||||
                    ###map $_->clip_with_polygon($expolygon->bounding_box->polygon),  # currently disabled as a workaround for Boost failing at being idempotent
 | 
			
		||||
                    ($is_interface && @$support_interface_patterns)
 | 
			
		||||
                        ? @{$support_interface_patterns->[ $layer_id % @$support_interface_patterns ]}
 | 
			
		||||
                        : @{$support_patterns->[ $layer_id % @$support_patterns ]};
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue