Closed lukepighetti closed 2 years ago
Interesting. It looks like this is happening on the latest released version as well. I thought it might be an issue with the new quantity field on CutPiece
, but that's not the case. I tested this on 12a1c6e
and it's giving the same strange result. I'll do some debugging to figure out what's going on.
If I set the StockPiece quantity to None
it gives the correct result so the bug must be in the quantity handling for stock pieces.
It turned out to be a problem when the quantity of the stock piece was 1.
Thanks for the fast triage and resolution!
This is resolved after upgrading to rev https://github.com/jasonrhansen/cut-optimizer-2d/commit/e382e13ca537303d90ef54d517abc620f31d278a, thanks!
Summary
Trying to cut 1 piece, getting 16 pieces instead
Version
Currently on cut-optimizer-2d git rev
80d7031
Cut spec
Human solution
MCVE
Result