Papooch/WasteOptimiser ? reverse-engineered prompt
Reverse engineered prompt
Build me a Python app for nesting irregular 2D shapes so I can optimize material use for CNC or g code jobs.
I want a simple GUI where I can load a folder of g code files, see the valid shapes, choose how many of each one to place, and then run an optimizer that lays them out inside a workspace. Let me set the board size, spacing from the edge, spacing between parts, and a preferred starting area. I also need a way to add and remove forbidden holes in the workspace.
Please include the smarter nesting method when possible, but also make sure there is a fallback mode that works without the slower external library. It should be able to rotate parts, optionally use a part’s convex hull, and have a local improvement step to try tighter packing.
I’d also like a small Python API so the same logic can be used from a script, plus export and import of saved workspaces. If you need to check current docs for any dependency details, go ahead and look them up online.
Are you gonna build this?
make sure you review the code using coderabbit