mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-10-31 20:51:12 -06:00
Optimization in Polyline instantiation
This commit is contained in:
parent
27c421c27f
commit
8061cc6e30
14 changed files with 40 additions and 45 deletions
|
|
@ -21,7 +21,7 @@ use Slic3r::Geometry qw(scale);
|
|||
foreach my $point (@$points) {
|
||||
@$point = map scale $_, @$point;
|
||||
}
|
||||
my $polyline = Slic3r::Polyline->new($points);
|
||||
my $polyline = Slic3r::Polyline->new(@$points);
|
||||
my $serialized = $polyline->serialize;
|
||||
my $deserialized = Slic3r::Polyline->deserialize($serialized);
|
||||
is scalar(@$deserialized), scalar(@$points), 'number of deserialized points';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue