This is an executable example code for using the lib3mf with the 3MF toolpath extension.
The lib3mf binary is compiled from the lib3mf submodule here, and currently working on the toolpath_squashed branch: https://github.com/3MFConsortium/lib3mf/tree/toolpath_squashed
Please reach out for any questions, comments or suggestions.