Export toolpath to obj in prusaslicer g-code viewer
I am trying to understand how to generate the obj file out of the G-code. The way I think I can do it is either by sweeping a profile along the line extracting the coordinates and defining it as the path. Or extruding a profile along the path. This approach takes a lot of computational time ( Even after writing a code to automate the process in FreeCAD/ Abaqus (Related papers: Comparison of CAD and voxel-based modeling methodologies for the mechanical simulation of extrusion-based 3D printed scaffolds, Geometry reconstruction for additive manufacturing from g-code to 3d cad model). Another way would be to create voxels (VOLCO A predictive model for 3D printed microarchitecture) but all these processes are very slow.
However, the export as obj function in Prusa generates the file very fast. I would appreciate it if somebody could share knowledge on this.
Take a look at Prusa's Github.
Cheerio,
RE: Export toolpath to obj in prusaslicer g-code viewer
Thanks, I have already looked through the Prusa documentation and the only thing I found is https://help.prusa3d.com/article/export-toolpaths-as-obj_1777 .
All of the source code is available here:
RE: Export toolpath to obj in prusaslicer g-code viewer
Thanks, understanding the codes are way beyond my knowledge so I was looking for something in the documentation but I could not find much information.