mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-24 15:13:58 -06:00
Ported PrintObject::bounding_box() to XS
This commit is contained in:
parent
1fda9e3d50
commit
c7f5753a28
4 changed files with 17 additions and 10 deletions
|
@ -40,16 +40,6 @@ sub total_layer_count {
|
|||
return $self->layer_count + $self->support_layer_count;
|
||||
}
|
||||
|
||||
sub bounding_box {
|
||||
my $self = shift;
|
||||
|
||||
# since the object is aligned to origin, bounding box coincides with size
|
||||
return Slic3r::Geometry::BoundingBox->new_from_points([
|
||||
Slic3r::Point->new(0,0),
|
||||
map Slic3r::Point->new($_->x, $_->y), $self->size #))
|
||||
]);
|
||||
}
|
||||
|
||||
# this should be idempotent
|
||||
sub slice {
|
||||
my $self = shift;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue