This commit is contained in:
parent
74f2f45554
commit
b551852392
@ -249,9 +249,11 @@ sub _medial_axis_voronoi {
|
|||||||
} else {
|
} else {
|
||||||
push @result, Slic3r::Polyline->new(@points);
|
push @result, Slic3r::Polyline->new(@points);
|
||||||
}
|
}
|
||||||
$result[-1]->simplify($width / 7);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# apply Douglas-Peucker to straighten paths
|
||||||
|
@result = map $_->simplify($width / 7), @result;
|
||||||
|
|
||||||
return @result;
|
return @result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -298,8 +298,7 @@ sub make_perimeters {
|
|||||||
# append perimeters
|
# append perimeters
|
||||||
$self->perimeters->append(@loops);
|
$self->perimeters->append(@loops);
|
||||||
|
|
||||||
# detect thin walls by offsetting slices by half extrusion inwards
|
# process thin walls by collapsing slices to single passes
|
||||||
# and add them as perimeters
|
|
||||||
if (@thin_walls) {
|
if (@thin_walls) {
|
||||||
my @p = map $_->medial_axis($pspacing), @thin_walls;
|
my @p = map $_->medial_axis($pspacing), @thin_walls;
|
||||||
my @paths = ();
|
my @paths = ();
|
||||||
|
Loading…
Reference in New Issue
Block a user