In fact, when it comes to 3D printing in particular file sizes can get awfully large. Partly to address this, Prusa have proposed a new .bgcode binary G-code format. You can read the specification ...
It appears to be a G-code file, typically used to control 3D printers." That was a good start. To ensure we were clear on which file was which, I gave ChatGPT some labels for the files ...
It always seemed to us that the Z-axis on a 3D printer ... G-code. The G-code is then back-transformed in exactly the opposite process as pre-deformation before being fed to the printer.