Cut: Fix transformations, make contour not scale with object

This commit is contained in:
Lukas Matena 2022-09-20 21:25:02 +02:00
parent 94685b5ad8
commit a6f94193d5
3 changed files with 51 additions and 17 deletions

View file

@ -19,6 +19,13 @@ void ExPolygon::scale(double factor)
hole.scale(factor);
}
void ExPolygon::scale(double factor_x, double factor_y)
{
contour.scale(factor_x, factor_y);
for (Polygon &hole : holes)
hole.scale(factor_x, factor_y);
}
void ExPolygon::translate(const Point &p)
{
contour.translate(p);