for the record - tpu with steel pins at the hinges - would work really well and be pretty much indestructible.

And it really is a three line openscad script :-)