mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-15 02:37:51 -06:00
Initial work for new model handling
This commit is contained in:
parent
57fd6ad563
commit
7871673bf6
3 changed files with 89 additions and 66 deletions
|
@ -130,6 +130,16 @@ sub min_point {
|
|||
return Slic3r::Point->new($self->extents->[X][MIN], $self->extents->[Y][MIN]);
|
||||
}
|
||||
|
||||
sub min_point3 {
|
||||
my $self = shift;
|
||||
return [ map $self->extents->[$_][MIN], (X,Y,Z) ];
|
||||
}
|
||||
|
||||
sub vector_to_origin {
|
||||
my $self = shift;
|
||||
return [ map -$_, @{$self->min_point3} ];
|
||||
}
|
||||
|
||||
sub max_point {
|
||||
my $self = shift;
|
||||
return Slic3r::Point->new($self->extents->[X][MAX], $self->extents->[Y][MAX]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue