Cut: Fix transformations, make contour not scale with object
This commit is contained in:
parent
94685b5ad8
commit
a6f94193d5
3 changed files with 51 additions and 17 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue