mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-12 04:59:01 +08:00
Bugfix: the grow() method wasn't working properly, causing bad brim/support material interface. #639
This commit is contained in:
parent
9ee9b54c73
commit
f50b0040ef
@ -88,7 +88,7 @@ sub length {
|
|||||||
# this only applies to polylines
|
# this only applies to polylines
|
||||||
sub grow {
|
sub grow {
|
||||||
my $self = shift;
|
my $self = shift;
|
||||||
return Slic3r::Polygon->new(@$self, CORE::reverse @$self[1..-2])->offset(@_);
|
return Slic3r::Polygon->new(@$self, CORE::reverse @$self[1..($#$self-1)])->offset(@_);
|
||||||
}
|
}
|
||||||
|
|
||||||
sub nearest_point_to {
|
sub nearest_point_to {
|
||||||
|
@ -594,6 +594,7 @@ sub make_brim {
|
|||||||
polygon => Slic3r::Polygon->new($_),
|
polygon => Slic3r::Polygon->new($_),
|
||||||
role => EXTR_ROLE_SKIRT,
|
role => EXTR_ROLE_SKIRT,
|
||||||
) for @{Math::Clipper::offset(\@islands, $i * $flow->scaled_spacing, 100, JT_SQUARE)};
|
) for @{Math::Clipper::offset(\@islands, $i * $flow->scaled_spacing, 100, JT_SQUARE)};
|
||||||
|
# TODO: we need the offset inwards/offset outwards logic to avoid overlapping extrusions
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user