mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-04 01:30:40 +08:00
Overloaded append() to add single ExPolygons (avoids having to create a vector for no purpose)
This commit is contained in:
parent
efedbc6c4e
commit
e77e3bb683
@ -135,5 +135,10 @@ ExPolygonCollection::append(const ExPolygons &expp)
|
||||
{
|
||||
this->expolygons.insert(this->expolygons.end(), expp.begin(), expp.end());
|
||||
}
|
||||
void
|
||||
ExPolygonCollection::append(const ExPolygon &expp)
|
||||
{
|
||||
this->expolygons.push_back(expp);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -33,6 +33,7 @@ class ExPolygonCollection
|
||||
Polygons contours() const;
|
||||
Polygons holes() const;
|
||||
void append(const ExPolygons &expolygons);
|
||||
void append(const ExPolygon &expolygons);
|
||||
};
|
||||
|
||||
inline ExPolygonCollection&
|
||||
|
Loading…
x
Reference in New Issue
Block a user