mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-14 10:35:55 +08:00
Fixed the "has virtual functions and accessible non-virtual destructor" warning. #3949
This commit is contained in:
parent
b826f8baea
commit
69bef2a971
@ -17,8 +17,6 @@ class MultiPoint
|
|||||||
Points points;
|
Points points;
|
||||||
|
|
||||||
operator Points() const;
|
operator Points() const;
|
||||||
MultiPoint() {};
|
|
||||||
explicit MultiPoint(const Points &_points): points(_points) {};
|
|
||||||
void scale(double factor);
|
void scale(double factor);
|
||||||
void translate(double x, double y);
|
void translate(double x, double y);
|
||||||
void translate(const Point &vector);
|
void translate(const Point &vector);
|
||||||
@ -48,6 +46,11 @@ class MultiPoint
|
|||||||
std::string dump_perl() const;
|
std::string dump_perl() const;
|
||||||
|
|
||||||
static Points _douglas_peucker(const Points &points, const double tolerance);
|
static Points _douglas_peucker(const Points &points, const double tolerance);
|
||||||
|
|
||||||
|
protected:
|
||||||
|
MultiPoint() {};
|
||||||
|
explicit MultiPoint(const Points &_points): points(_points) {};
|
||||||
|
~MultiPoint() = default;
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace Slic3r
|
} // namespace Slic3r
|
||||||
|
Loading…
x
Reference in New Issue
Block a user