mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-21 05:37:52 -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
|
@ -37,6 +37,11 @@ public:
|
|||
|
||||
void clear() { surfaces.clear(); }
|
||||
bool empty() const { return surfaces.empty(); }
|
||||
bool has(SurfaceType type) const {
|
||||
for (const Surface &surface : this->surfaces)
|
||||
if (surface.surface_type == type) return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
void set(const SurfaceCollection &coll) { surfaces = coll.surfaces; }
|
||||
void set(SurfaceCollection &&coll) { surfaces = std::move(coll.surfaces); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue