Since I released ~Ghost Town Pumpkin Festival~ at the beginning of this month, I've been rewriting the cutting algorithm from scratch to try and make it less error-prone!

To help debug it, I rewrote it as a coroutine that can visualize the steps. This helped a lot! 🎃

Also crucial to this process: The ability to save and replay the cuts that lead to errors!

I have assembled a collection of CURSED pumpkins that I can test the algorithm on, which I've sort of automated as a test suite.🤓

It feels like there are so many edge cases... dealing with holes, floating pumpkin pieces, seams in the topology, and especially floating point precision errors... I'm not an expert at this, so it's kept me pretty busy!

It's still not perfect but I've been looking at this for so long now so I'm just shipping this new version.

It's still better than the last algorithm, I think. Less errors! 🙏

This update is out on Windows, Mac + Linux coming later!

https://adamgryu.itch.io/pumpkin-carver

The Annual Ghost Town Pumpkin Festival by adamgryu

carve a lil pumpkin and share it with the world

itch.io