mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-10-29 19:53:44 -06:00
Optimization in Polyline instantiation
This commit is contained in:
parent
27c421c27f
commit
8061cc6e30
14 changed files with 40 additions and 45 deletions
|
|
@ -33,9 +33,9 @@ sub fill_surface {
|
|||
my $path = "Math::PlanePath::$1"->new;
|
||||
my @n = $self->get_n($path, [ map +($_ / $distance_between_lines), @{$bounding_box->bb} ]);
|
||||
|
||||
my $polyline = Slic3r::Polyline->new([
|
||||
my $polyline = Slic3r::Polyline->new(
|
||||
map [ map {$_*$distance_between_lines} $path->n_to_xy($_) ], @n,
|
||||
]);
|
||||
);
|
||||
return {} if !@$polyline;
|
||||
|
||||
$self->process_polyline($polyline, $bounding_box);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue