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>2017-04-04 12:17:25 +0300
committerbubnikv <bubnikv@gmail.com>2017-04-04 12:17:25 +0300
commitbd9ee88e2fa695aed43915e4df2c328a664034d4 (patch)
treee58d5cad057bd42564b0c19d0eb1ab03357c3d41 /xs/src/libslic3r/Point.hpp
parent70fcedb1136dde2c782b41d6611cb33481a7721c (diff)
Fix of https://github.com/prusa3d/Slic3r/issues/214
Dent in perimeters around a hole Clipper Offset has been extended to remove tiny edges before the offset. This is important as the tiny edges pose difficulty for normal calculation, leading to various adverse effects like kinks and dents in the offsetted contour.
Diffstat (limited to 'xs/src/libslic3r/Point.hpp')
-rw-r--r--xs/src/libslic3r/Point.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/xs/src/libslic3r/Point.hpp b/xs/src/libslic3r/Point.hpp
index 63040718b..88b585307 100644
--- a/xs/src/libslic3r/Point.hpp
+++ b/xs/src/libslic3r/Point.hpp
@@ -38,6 +38,7 @@ class Point
return Point(scale_(x), scale_(y));
};
bool operator==(const Point& rhs) const { return this->x == rhs.x && this->y == rhs.y; }
+ bool operator!=(const Point& rhs) const { return ! (*this == rhs); }
std::string wkt() const;
std::string dump_perl() const;
void scale(double factor);