Reverse engineering a gcode file back to a mesh in GH

Does anyone know of a tool that can reverse engineer a gcode file back into a mesh/stl file? This seems like something that should be doable.

Thanks in advance.