mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-17 18:42:24 +00:00
Optimization in Polyline instantiation
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user