~ubuntu-branches/ubuntu/utopic/slic3r/utopic

« back to all changes in this revision

Viewing changes to lib/Slic3r/Fill/Flowsnake.pm

  • Committer: Package Import Robot
  • Author(s): Chow Loong Jin
  • Date: 2014-06-17 01:27:26 UTC
  • Revision ID: package-import@ubuntu.com-20140617012726-2wrs4zdo251nr4vg
Tags: upstream-1.1.4+dfsg
ImportĀ upstreamĀ versionĀ 1.1.4+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
package Slic3r::Fill::Flowsnake;
 
2
use Moo;
 
3
 
 
4
extends 'Slic3r::Fill::PlanePath';
 
5
 
 
6
use Math::PlanePath::Flowsnake;
 
7
use Slic3r::Geometry qw(X);
 
8
 
 
9
# Sorry, this fill is currently broken.
 
10
 
 
11
sub process_polyline {
 
12
    my $self = shift;
 
13
    my ($polyline, $bounding_box) = @_;
 
14
    
 
15
    $_->[X] += $bounding_box->center->[X] for @$polyline;
 
16
}
 
17
 
 
18
1;