diff --git a/lib/Slic3r/Fill/3DHoneycomb.pm b/lib/Slic3r/Fill/3DHoneycomb.pm index 256437707..b24caf49a 100644 --- a/lib/Slic3r/Fill/3DHoneycomb.pm +++ b/lib/Slic3r/Fill/3DHoneycomb.pm @@ -19,12 +19,14 @@ sub fill_surface { my $distance = scale($self->spacing) / $params{density}; - # align bounding box to a multiple of our honeycomb grid + # align bounding box to a multiple of our honeycomb grid module + # (a module is 2*$distance since one $distance half-module is + # growing while the other $distance half-module is shrinking) { my $min = $bb->min_point; $min->translate( - -($bb->x_min % $distance), - -($bb->y_min % $distance), + -($bb->x_min % (2*$distance)), + -($bb->y_min % (2*$distance)), ); $bb->merge_point($min); }