mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-23 14:44:19 -06:00
Optimization in Polyline instantiation
This commit is contained in:
parent
27c421c27f
commit
8061cc6e30
14 changed files with 40 additions and 45 deletions
|
@ -38,12 +38,12 @@ sub polygon {
|
|||
my $self = shift;
|
||||
|
||||
my $e = $self->extents;
|
||||
return Slic3r::Polygon->new([
|
||||
return Slic3r::Polygon->new(
|
||||
[ $e->[X][MIN], $e->[Y][MIN] ],
|
||||
[ $e->[X][MAX], $e->[Y][MIN] ],
|
||||
[ $e->[X][MAX], $e->[Y][MAX] ],
|
||||
[ $e->[X][MIN], $e->[Y][MAX] ],
|
||||
]);
|
||||
);
|
||||
}
|
||||
|
||||
# note to $self
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue