ModischFabrications / CutSolver

Webservice to determine ideal cut placement on stocks
https://cutsolver.modisch.me
GNU Lesser General Public License v3.0
31 stars 6 forks source link

[Bug] Zero cutting width not working with FFD #59

Closed ecdlguy closed 4 months ago

ecdlguy commented 1 year ago

Hi,

I've done a simple test, see screenshot: Bildschirmfoto von 2023-07-19 13-06-07

Using "cutting width = 0", shouldn't this yield 10 parts per rod?

cheers, Thorsten

ModischFabrications commented 8 months ago

Hey, sorry for missing this issue. I agree with you, this seems like a bug. It works with a length a tiny bit over the sum, so I guess there is a greater/greaterOrEqual problem somewhere. A bandaid for now is to add a tiny amount, e.g. 1001 instead of 1000. Could also be related to floating point errors, but I would be surprised, I used integer math wherever possible.

ecdlguy commented 3 months ago

Is https://cutsolver.modisch.me/ already using the fix?

Bildschirmfoto vom 2024-04-03 11-04-29

ModischFabrications commented 3 months ago

Not yet, will try to release an update this week. Online version is v1.0.0, new one is v1.0.1

ModischFabrications commented 3 months ago

Just updated, check it out 😉 Out of curiosity: What are you using it for? I haven't found a use for zero width cuts yet