3D printers use a weird filesystem similar to turtle graphics, you have to start at the base, then go to each layer defining the cursor where to move, systems that generate 3d printer files can get extremely complex as to also work against gravity, best of luck to ya