Simplified the skirt paths.
This commit is contained in:
parent
073d6d2d43
commit
9e0a690d2e
@ -958,7 +958,12 @@ void Print::_make_skirt()
|
||||
// Offset the skirt outside.
|
||||
distance += coord_t(scale_(spacing));
|
||||
// Generate the skirt centerline.
|
||||
Polygon loop = offset(convex_hull, distance, ClipperLib::jtRound, scale_(0.1)).front();
|
||||
Polygon loop;
|
||||
{
|
||||
Polygons loops = offset(convex_hull, distance, ClipperLib::jtRound, scale_(0.1));
|
||||
Geometry::simplify_polygons(loops, scale_(0.05), &loops);
|
||||
loop = loops.front();
|
||||
}
|
||||
// Extrude the skirt loop.
|
||||
ExtrusionLoop eloop(elrSkirt);
|
||||
eloop.paths.emplace_back(ExtrusionPath(
|
||||
|
Loading…
Reference in New Issue
Block a user