Improved robustness of slicing when the slicing plane

crosses a horizontal plane of an object exactly.
Should improve Github issues #831, #895, #1102
This commit is contained in:
bubnikv
2018-08-08 16:24:10 +02:00
parent 93b8f3147c
commit 00e9f07a03
5 changed files with 188 additions and 86 deletions

View File

@@ -19,6 +19,8 @@ public:
Polyline() {};
Polyline(const Polyline &other) : MultiPoint(other.points) {}
Polyline(Polyline &&other) : MultiPoint(std::move(other.points)) {}
explicit Polyline(const Points &points) : MultiPoint(points) {}
explicit Polyline(Points &&points) : MultiPoint(std::move(points)) {}
Polyline& operator=(const Polyline &other) { points = other.points; return *this; }
Polyline& operator=(Polyline &&other) { points = std::move(other.points); return *this; }
static Polyline new_scale(std::vector<Pointf> points) {