PrusaSlicer-NonPlainar/lib/Slic3r/Fill/Flowsnake.pm

19 lines
335 B
Perl
Raw Normal View History

package Slic3r::Fill::Flowsnake;
use Moo;
extends 'Slic3r::Fill::PlanePath';
use Math::PlanePath::Flowsnake;
use Slic3r::Geometry qw(X);
# Sorry, this fill is currently broken.
sub process_polyline {
my $self = shift;
my ($polyline, $bounding_box) = @_;
2014-01-07 11:48:09 +00:00
$_->[X] += $bounding_box->center->[X] for @$polyline;
}
1;