mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-05-20 16:59:10 -07:00
Some documentation, C++11 conversion, code beautification,
added some helper methods.
This commit is contained in:
@@ -61,12 +61,11 @@ ExPolygonCollection::rotate(double angle, const Point ¢er)
|
||||
}
|
||||
|
||||
template <class T>
|
||||
bool
|
||||
ExPolygonCollection::contains(const T &item) const
|
||||
bool ExPolygonCollection::contains(const T &item) const
|
||||
{
|
||||
for (ExPolygons::const_iterator it = this->expolygons.begin(); it != this->expolygons.end(); ++it) {
|
||||
if (it->contains(item)) return true;
|
||||
}
|
||||
for (const ExPolygon &poly : this->expolygons)
|
||||
if (poly.contains(item))
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
template bool ExPolygonCollection::contains<Point>(const Point &item) const;
|
||||
|
||||
Reference in New Issue
Block a user