Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/xs
diff options
context:
space:
mode:
authorbubnikv <bubnikv@gmail.com>2017-03-23 14:35:00 +0300
committerbubnikv <bubnikv@gmail.com>2017-03-23 14:35:00 +0300
commit9e0a690d2e9a8349dca42b75c5a14e39ea6cab6f (patch)
tree9e0d1a8b06cfb5e809d576508311c04a66ebc534 /xs
parent073d6d2d43db29e3b2c9aef348e6912592cce8ff (diff)
Simplified the skirt paths.
Diffstat (limited to 'xs')
-rw-r--r--xs/src/libslic3r/Print.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/xs/src/libslic3r/Print.cpp b/xs/src/libslic3r/Print.cpp
index 18b01fea3..f327a095a 100644
--- a/xs/src/libslic3r/Print.cpp
+++ b/xs/src/libslic3r/Print.cpp
@@ -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(