mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-13 17:58:03 -06:00
Ported ExtrusionPath::Collection
This commit is contained in:
parent
0efea9e442
commit
c030e38908
18 changed files with 181 additions and 60 deletions
|
@ -5,24 +5,24 @@ namespace Slic3r {
|
|||
void
|
||||
ExPolygonCollection::scale(double factor)
|
||||
{
|
||||
for (ExPolygons::iterator it = expolygons.begin(); it != expolygons.end(); ++it) {
|
||||
(*it).scale(factor);
|
||||
for (ExPolygonsPtr::iterator it = expolygons.begin(); it != expolygons.end(); ++it) {
|
||||
(**it).scale(factor);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
ExPolygonCollection::translate(double x, double y)
|
||||
{
|
||||
for (ExPolygons::iterator it = expolygons.begin(); it != expolygons.end(); ++it) {
|
||||
(*it).translate(x, y);
|
||||
for (ExPolygonsPtr::iterator it = expolygons.begin(); it != expolygons.end(); ++it) {
|
||||
(**it).translate(x, y);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
ExPolygonCollection::rotate(double angle, Point* center)
|
||||
{
|
||||
for (ExPolygons::iterator it = expolygons.begin(); it != expolygons.end(); ++it) {
|
||||
(*it).rotate(angle, center);
|
||||
for (ExPolygonsPtr::iterator it = expolygons.begin(); it != expolygons.end(); ++it) {
|
||||
(**it).rotate(angle, center);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue