2011-11-13 17:14:02 +00:00
|
|
|
package Slic3r::Fill::Flowsnake;
|
|
|
|
use Moo;
|
|
|
|
|
|
|
|
extends 'Slic3r::Fill::PlanePath';
|
|
|
|
|
|
|
|
use Math::PlanePath::Flowsnake;
|
2013-06-16 10:21:25 +00:00
|
|
|
use Slic3r::Geometry qw(X);
|
2011-11-13 17:14:02 +00:00
|
|
|
|
|
|
|
# Sorry, this fill is currently broken.
|
|
|
|
|
|
|
|
sub process_polyline {
|
|
|
|
my $self = shift;
|
|
|
|
my ($polyline, $bounding_box) = @_;
|
|
|
|
|
2013-06-16 10:21:25 +00:00
|
|
|
$_->[X] += $bounding_box->center_2D->[X] for @$polyline;
|
2011-11-13 17:14:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
1;
|