mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-05-05 23:05:10 +08:00
Draw bed contours with grid linewidth
This commit is contained in:
parent
84c30c1cf5
commit
6438bfc3cb
@ -332,6 +332,12 @@ sub set_bed_shape {
|
|||||||
# clip with a slightly grown expolygon because our lines lay on the contours and
|
# clip with a slightly grown expolygon because our lines lay on the contours and
|
||||||
# may get erroneously clipped
|
# may get erroneously clipped
|
||||||
@lines = @{intersection_pl(\@lines, [ @{$expolygon->offset(+scaled_epsilon)} ])};
|
@lines = @{intersection_pl(\@lines, [ @{$expolygon->offset(+scaled_epsilon)} ])};
|
||||||
|
|
||||||
|
# append bed contours
|
||||||
|
foreach my $line (map @{$_->lines}, @$expolygon) {
|
||||||
|
push @lines, $line->as_polyline;
|
||||||
|
}
|
||||||
|
|
||||||
my @points = ();
|
my @points = ();
|
||||||
foreach my $polyline (@lines) {
|
foreach my $polyline (@lines) {
|
||||||
push @points, map {+ unscale($_->x), unscale($_->y), GROUND_Z } @$polyline; #))
|
push @points, map {+ unscale($_->x), unscale($_->y), GROUND_Z } @$polyline; #))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user