Stop bed filling if enough instances are generated

This commit is contained in:
tamasmeszaros 2020-11-24 14:41:36 +01:00
parent 0fc1929076
commit 30693e29e4
4 changed files with 15 additions and 8 deletions

View file

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