Avoid backwards moves when doing honeycomb infill. #492

This commit is contained in:
Alessandro Ranellucci committed 2012-08-24 19:19:45 +02:00
1 parent 5281b101f9
commit ba58e0733f
1 file changed
+4 -1
+4 -1
View File
@@ -83,7 +83,10 @@ sub fill_surface {
$self->cache->{$cache_id} = [@polygons];
}
my @paths = map Slic3r::Polyline->new(@$_, $_->[0]), map @$_, @{intersection_ex(
# build polylines from polygons without re-appending the initial point:
# this cuts the last segment on purpose, so that the jump to the next
# path is more straight
my @paths = map Slic3r::Polyline->new(@$_), map @$_, @{intersection_ex(
$self->cache->{$cache_id},
[ map @$_, $expolygon->offset_ex($overlap_distance) ],
)};