mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-10-14 11:12:54 +02:00
Refactoring: use Slic3r::Geometry::BoundingBox objects everywhere
This commit is contained in:
1 parent
07407e5dbd
commit
ac4a0bcdd8
20 files changed
+105
-127
No files matched your search
@@ -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 ]};
|
||||
|
||||
Reference in new issue
Block a user