Timeout here @AndersK. There is no mesh/model in a gcode file...just lines in space. I don't see any way this can be done.
Typically I "read" the gcode into AutoCad with a macro and then design a new model around the wireframe. The wire frame is undersized by 1/2 line width in the +X and -X as well as the +Y and -Y and at the base that was resting on the build plate. That's another of the reasons it can't be converted.
If you want to post the gcode I can turn it into a DXF file (consisting of a lot of lines in space) and post it back.
Yes, you can open the g-code in Cura and then File-Export to STL
No idea of export quality though
Link to post
Share on other sites