Fix for bed filling with some existing items out of bed.

This commit is contained in:
tamasmeszaros 2020-12-02 17:52:40 +01:00
parent 4e90df1ea5
commit 2813db8906
3 changed files with 30 additions and 3 deletions

View file

@ -62,6 +62,15 @@ struct ArrangePolygon {
/// Test if arrange() was called previously and gave a successful result.
bool is_arranged() const { return bed_idx != UNARRANGED; }
inline ExPolygon transformed_poly() const
{
ExPolygon ret = poly;
ret.rotate(rotation);
ret.translate(translation.x(), translation.y());
return ret;
}
};
using ArrangePolygons = std::vector<ArrangePolygon>;