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

github.com/supermerill/SuperSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'xs/src/libslic3r/ExPolygon.cpp')
-rw-r--r--xs/src/libslic3r/ExPolygon.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/xs/src/libslic3r/ExPolygon.cpp b/xs/src/libslic3r/ExPolygon.cpp
index 53a1e9333..83e1929aa 100644
--- a/xs/src/libslic3r/ExPolygon.cpp
+++ b/xs/src/libslic3r/ExPolygon.cpp
@@ -122,6 +122,13 @@ ExPolygon::has_boundary_point(const Point &point) const
return false;
}
+void
+ExPolygon::simplify_p(double tolerance, Polygons* polygons) const
+{
+ Polygons pp = this->simplify_p(tolerance);
+ polygons->insert(polygons->end(), pp.begin(), pp.end());
+}
+
Polygons
ExPolygon::simplify_p(double tolerance) const
{