The following script works as-is, but somehow if the first color line near the top is commented out and the second one used, the pieces get cut differently and stop making spatial sense. The only change is turning a 5 (blue) to 0 (white). Yet somehow the numbering scheme changes enough to make the code not work.
Sorry for the long script, I don't know a shorter way to show the bug.
The following script works as-is, but somehow if the first color line near the top is commented out and the second one used, the pieces get cut differently and stop making spatial sense. The only change is turning a 5 (blue) to 0 (white). Yet somehow the numbering scheme changes enough to make the code not work.
Sorry for the long script, I don't know a shorter way to show the bug.