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
diff options
context:
space:
mode:
authorbubnikv <bubnikv@gmail.com>2016-09-12 12:29:39 +0300
committerbubnikv <bubnikv@gmail.com>2016-09-12 12:29:39 +0300
commit9fcc8fe9aeacb8edf6206787574cf1a84c88a5cc (patch)
tree549776f3a63d4eb240d0caaf7a63fa6259dac031 /xs/src/libslic3r/ExPolygon.cpp
parentca98e2655a4a5875947598f404791ea6c0313609 (diff)
parentd022493297a110a9f982786ed696528c1d79d0f1 (diff)
Meged with release_candidate_1_3
Diffstat (limited to 'xs/src/libslic3r/ExPolygon.cpp')
-rw-r--r--xs/src/libslic3r/ExPolygon.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/xs/src/libslic3r/ExPolygon.cpp b/xs/src/libslic3r/ExPolygon.cpp
index 3640d3918..1347f4a94 100644
--- a/xs/src/libslic3r/ExPolygon.cpp
+++ b/xs/src/libslic3r/ExPolygon.cpp
@@ -53,6 +53,15 @@ ExPolygon::translate(double x, double y)
}
void
+ExPolygon::rotate(double angle)
+{
+ contour.rotate(angle);
+ for (Polygons::iterator it = holes.begin(); it != holes.end(); ++it) {
+ (*it).rotate(angle);
+ }
+}
+
+void
ExPolygon::rotate(double angle, const Point &center)
{
contour.rotate(angle, center);