mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-14 03:45:58 +08:00
Yes, recent memory optimizations broke concentric infill too
This commit is contained in:
parent
4aa85f4571
commit
74c00cdb7a
@ -53,6 +53,7 @@ sub fill_surface {
|
|||||||
);
|
);
|
||||||
foreach my $loop (map Slic3r::ExtrusionLoop->new(polygon => $_, role => EXTR_ROLE_FILL), @loops) {
|
foreach my $loop (map Slic3r::ExtrusionLoop->new(polygon => $_, role => EXTR_ROLE_FILL), @loops) {
|
||||||
# extrude all loops ccw
|
# extrude all loops ccw
|
||||||
|
$loop->deserialize;
|
||||||
$loop->polygon->make_counter_clockwise;
|
$loop->polygon->make_counter_clockwise;
|
||||||
|
|
||||||
# find the point of the loop that is closest to the current extruder position
|
# find the point of the loop that is closest to the current extruder position
|
||||||
@ -60,6 +61,7 @@ sub fill_surface {
|
|||||||
|
|
||||||
# split the loop at the starting point and make a path
|
# split the loop at the starting point and make a path
|
||||||
my $path = $loop->split_at($cur_pos);
|
my $path = $loop->split_at($cur_pos);
|
||||||
|
$path->deserialize;
|
||||||
|
|
||||||
# clip the path to avoid the extruder to get exactly on the first point of the loop
|
# clip the path to avoid the extruder to get exactly on the first point of the loop
|
||||||
$path->clip_end(scale $Slic3r::flow_width * 0.15);
|
$path->clip_end(scale $Slic3r::flow_width * 0.15);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user