mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-22 06:04:01 -06:00
Some documentation, C++11 conversion, code beautification,
added some helper methods.
This commit is contained in:
parent
077680b806
commit
440e58573e
14 changed files with 109 additions and 82 deletions
|
@ -34,8 +34,10 @@ public:
|
|||
Point first_point() const;
|
||||
virtual Point last_point() const = 0;
|
||||
virtual Lines lines() const = 0;
|
||||
size_t size() const { return points.size(); }
|
||||
bool empty() const { return points.empty(); }
|
||||
double length() const;
|
||||
bool is_valid() const { return this->points.size() >= 2; }
|
||||
bool is_valid() const { return this->points.size() >= 2; }
|
||||
|
||||
int find_point(const Point &point) const;
|
||||
bool has_boundary_point(const Point &point) const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue