mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-06 13:34:05 -06:00
Avoid crossing perimeters: Further refactoring for clarity, code review.
This commit is contained in:
parent
62ab17bf6e
commit
f206b743fd
8 changed files with 363 additions and 393 deletions
|
@ -42,11 +42,11 @@ void ExPolygon::scale(double factor)
|
|||
hole.scale(factor);
|
||||
}
|
||||
|
||||
void ExPolygon::translate(double x, double y)
|
||||
void ExPolygon::translate(const Point &p)
|
||||
{
|
||||
contour.translate(x, y);
|
||||
contour.translate(p);
|
||||
for (Polygon &hole : holes)
|
||||
hole.translate(x, y);
|
||||
hole.translate(p);
|
||||
}
|
||||
|
||||
void ExPolygon::rotate(double angle)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue