2013-07-16 19:04:14 +00:00
|
|
|
#include "ExPolygonCollection.hpp"
|
|
|
|
|
|
|
|
namespace Slic3r {
|
|
|
|
|
|
|
|
void
|
|
|
|
ExPolygonCollection::scale(double factor)
|
|
|
|
{
|
2013-07-18 17:09:07 +00:00
|
|
|
for (ExPolygonsPtr::iterator it = expolygons.begin(); it != expolygons.end(); ++it) {
|
|
|
|
(**it).scale(factor);
|
2013-07-16 19:04:14 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
ExPolygonCollection::translate(double x, double y)
|
|
|
|
{
|
2013-07-18 17:09:07 +00:00
|
|
|
for (ExPolygonsPtr::iterator it = expolygons.begin(); it != expolygons.end(); ++it) {
|
|
|
|
(**it).translate(x, y);
|
2013-07-16 19:04:14 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
ExPolygonCollection::rotate(double angle, Point* center)
|
|
|
|
{
|
2013-07-18 17:09:07 +00:00
|
|
|
for (ExPolygonsPtr::iterator it = expolygons.begin(); it != expolygons.end(); ++it) {
|
|
|
|
(**it).rotate(angle, center);
|
2013-07-16 19:04:14 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|