mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-05-22 05:59:12 -07:00
Avoid crossing perimeters: Further refactoring for clarity, code review.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user