diff options
author | bubnikv <bubnikv@gmail.com> | 2016-09-12 12:29:39 +0300 |
---|---|---|
committer | bubnikv <bubnikv@gmail.com> | 2016-09-12 12:29:39 +0300 |
commit | 9fcc8fe9aeacb8edf6206787574cf1a84c88a5cc (patch) | |
tree | 549776f3a63d4eb240d0caaf7a63fa6259dac031 /xs/src/libslic3r/ExPolygon.cpp | |
parent | ca98e2655a4a5875947598f404791ea6c0313609 (diff) | |
parent | d022493297a110a9f982786ed696528c1d79d0f1 (diff) |
Meged with release_candidate_1_3
Diffstat (limited to 'xs/src/libslic3r/ExPolygon.cpp')
-rw-r--r-- | xs/src/libslic3r/ExPolygon.cpp | 9 |
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 ¢er) { contour.rotate(angle, center); |