FlexiCubes is a high-quality isosurface representation specifically designed for gradient-based mesh optimization with respect to geometric, visual, or even physical objectives. For more details, ...
In the end I simply deleted the lines that imported tkinter and that's it, PIL already has a function called Image so tkinter seems unnecessary P.S: Excellent script, using Projectorz along with ...