Very large refactoring. Ditched Slic3r::Polyline::Closed and reorganized geometric classes.

This commit is contained in:
Alessandro Ranellucci committed 2011-12-30 19:59:51 +01:00
1 parent 2def6a9787
commit 8ed91a8ec4
20 files changed
+293 -349

No files matched your search

+1 -1
View File
@@ -40,7 +40,7 @@ sub fill_surface {
my $path = "Math::PlanePath::$1"->new;
my @n = $self->get_n($path, [map +($_ / $distance_between_lines), @$bounding_box]);
my $polyline = Slic3r::Polyline->cast([
my $polyline = Slic3r::Polyline->new([
map [ map {$_*$distance_between_lines} $path->n_to_xy($_) ], @n,
]);
return {} if !@{$polyline->points};