diff options
author | bubnikv <bubnikv@gmail.com> | 2016-12-13 21:22:23 +0300 |
---|---|---|
committer | bubnikv <bubnikv@gmail.com> | 2016-12-13 21:22:23 +0300 |
commit | 6582182e0c47ffd231c2d84808715a4209108fe2 (patch) | |
tree | f18581f104edc74812308a574a4fc1831797c182 /xs/src/libslic3r/Polygon.cpp | |
parent | b2a5a1d22f67eba636d41f49c7684f2480fd3242 (diff) |
Adapted to the new ClipperUtils.hpp interface by @alexrj
Diffstat (limited to 'xs/src/libslic3r/Polygon.cpp')
-rw-r--r-- | xs/src/libslic3r/Polygon.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/xs/src/libslic3r/Polygon.cpp b/xs/src/libslic3r/Polygon.cpp index 056c285ec..60ccd792d 100644 --- a/xs/src/libslic3r/Polygon.cpp +++ b/xs/src/libslic3r/Polygon.cpp @@ -112,9 +112,7 @@ double Polygon::area() const bool Polygon::is_counter_clockwise() const { - ClipperLib::Path p; - Slic3rMultiPoint_to_ClipperPath(*this, &p); - return ClipperLib::Orientation(p); + return ClipperLib::Orientation(Slic3rMultiPoint_to_ClipperPath(*this)); } bool @@ -190,8 +188,7 @@ Polygon::simplify(double tolerance) const Polygons pp; pp.push_back(p); - simplify_polygons(pp, &pp); - return pp; + return simplify_polygons(pp); } void |