mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-15 10:47:50 -06:00
Simplified the skirt paths.
This commit is contained in:
parent
073d6d2d43
commit
9e0a690d2e
1 changed files with 6 additions and 1 deletions
|
@ -958,7 +958,12 @@ void Print::_make_skirt()
|
||||||
// Offset the skirt outside.
|
// Offset the skirt outside.
|
||||||
distance += coord_t(scale_(spacing));
|
distance += coord_t(scale_(spacing));
|
||||||
// Generate the skirt centerline.
|
// 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.
|
// Extrude the skirt loop.
|
||||||
ExtrusionLoop eloop(elrSkirt);
|
ExtrusionLoop eloop(elrSkirt);
|
||||||
eloop.paths.emplace_back(ExtrusionPath(
|
eloop.paths.emplace_back(ExtrusionPath(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue