Fix brim and extra perimeters after recent changes to ->slices

This commit is contained in:
Alessandro Ranellucci 2013-02-24 16:40:14 +01:00
parent de0c2febd9
commit c3dde74776
2 changed files with 10 additions and 10 deletions

View file

@ -635,7 +635,7 @@ sub make_brim {
polygon => Slic3r::Polygon->new($_),
role => EXTR_ROLE_SKIRT,
flow_spacing => $flow->spacing,
) for Slic3r::Geometry::Clipper::offset(\@islands, $i * $flow->scaled_spacing, undef, JT_SQUARE);
) for Slic3r::Geometry::Clipper::offset(\@islands, ($i - 0.5) * $flow->scaled_spacing, undef, JT_SQUARE); # -0.5 because islands are not represented by their centerlines
# TODO: we need the offset inwards/offset outwards logic to avoid overlapping extrusions
}
}