diff options
author | Alessandro Ranellucci <aar@cpan.org> | 2011-09-02 23:10:20 +0400 |
---|---|---|
committer | Alessandro Ranellucci <aar@cpan.org> | 2011-09-02 23:10:20 +0400 |
commit | febd655e2200e4c8d6dd6e5275fefcc986b24b7f (patch) | |
tree | 1a1105afdb97f8a736ebcbe05e07c1fa023ef999 /lib/Slic3r/Layer.pm | |
parent | 55a523e1fa597923a4827c88378fb48b809367d0 (diff) |
Extrusion of perimeters
Diffstat (limited to 'lib/Slic3r/Layer.pm')
-rw-r--r-- | lib/Slic3r/Layer.pm | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/Slic3r/Layer.pm b/lib/Slic3r/Layer.pm index 0cbf07969..733caa4b4 100644 --- a/lib/Slic3r/Layer.pm +++ b/lib/Slic3r/Layer.pm @@ -32,6 +32,12 @@ has 'surfaces' => ( default => sub { [] }, ); +has 'perimeters' => ( + is => 'rw', + isa => 'ArrayRef[Slic3r::Polyline]', + default => sub { [] }, +); + sub z { my $self = shift; return $self->id * $Slic3r::layer_height / $Slic3r::resolution; @@ -313,7 +319,7 @@ sub merge_contiguous_surfaces { ); printf " merging into new surface %s\n", $new_surface->id; - push @{ $self->surfaces }, $surface; + push @{ $self->surfaces }, $new_surface; $self->remove_surface($_) for ($surface, $neighbor_surface); } |