Square This algorithm works by taking the least and max vertex in the mesh, then generating a series of planes to cut the mesh. The resulting intersections are the cuts. The cuts are then bevelled, ...
This script is greatly inspired by Komojo's work from the following thread : https://blenderartists.org/t/playstation-1-jittery-texture-effect-not-for-a-game/1167818 ...