Page 1 of 1

Dreaming of reversing G-Code to STL

Posted: Mon Dec 04, 2017 5:00 pm
by jaln
It would really be useful to have a reverse function that took a G-Code file back to STL.

Re: Dreaming of reversing G-Code to STL

Posted: Tue Dec 05, 2017 7:07 am
by arhi
you can extract all the XYZ values from g-code and create point cloud, or even better, parse gcode and create more points along each line... then you can use that point cloud to create mesh .. it will never be identical to original STL but it can be very close

Re: Dreaming of reversing G-Code to STL

Posted: Thu Feb 01, 2018 9:09 am
by srinivasbakki
Interesting! What's the use case you have for this ?

Re: Dreaming of reversing G-Code to STL

Posted: Fri Feb 02, 2018 10:00 am
by dkightley
There is an online service that will reverse engineer a gcode file back into an stl file.....

https://makeprintable.com/labs


Be warned....if the gcode file included slicer generated support, then the reverse engineered file will also contain the support!!!!