From 6438bfc3cb618ed061dfeea2e3b0fbffdc7f32c5 Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Sun, 4 Jan 2015 13:36:14 +0100 Subject: [PATCH] Draw bed contours with grid linewidth --- lib/Slic3r/GUI/PreviewCanvas.pm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/Slic3r/GUI/PreviewCanvas.pm b/lib/Slic3r/GUI/PreviewCanvas.pm index 4f856b523..ffa7c61b7 100644 --- a/lib/Slic3r/GUI/PreviewCanvas.pm +++ b/lib/Slic3r/GUI/PreviewCanvas.pm @@ -332,6 +332,12 @@ sub set_bed_shape { # clip with a slightly grown expolygon because our lines lay on the contours and # may get erroneously clipped @lines = @{intersection_pl(\@lines, [ @{$expolygon->offset(+scaled_epsilon)} ])}; + + # append bed contours + foreach my $line (map @{$_->lines}, @$expolygon) { + push @lines, $line->as_polyline; + } + my @points = (); foreach my $polyline (@lines) { push @points, map {+ unscale($_->x), unscale($_->y), GROUND_Z } @$polyline; #))