For example: You could enter some fragile object and then let the Prolog search for best shape of box for it.
Only problem is that all (most?) Prologs suck, the realm of natural numbers is not in the search space. In this case there is also good cause to limit this realm by available printing area and accuracy.