Fix bed filling with more existing instances than needed

This commit is contained in:
tamasmeszaros 2020-11-26 13:58:21 +01:00
parent 7f22ce63f6
commit dfbf4cbab2
7 changed files with 49 additions and 16 deletions

View file

@ -83,8 +83,9 @@ struct ArrangeParams {
/// Progress indicator callback called when an object gets packed.
/// The unsigned argument is the number of items remaining to pack.
/// Second is the current bed idx being filled.
std::function<void(unsigned, unsigned /*bed_idx*/)> progressind;
std::function<void(unsigned)> progressind;
std::function<void(const ArrangePolygon &)> on_packed;
/// A predicate returning true if abort is needed.
std::function<bool(void)> stopcondition;