For a student project, we plan to create out of the G-code a Geometric Region, which models the path the tool (of the mill, lathe) has executed in 3D space. It could be e.g. a List of Lines or a List of Hexahedrons (if we look at what was milled away by the tool).
The final goal is to Import the workpiece modeled in its CAM Software in STL Format into Mathematica and then try to map each workpiece mesh to its corresponding G-Code(s) statements which milled it.
Any thoughts are much appreciated. Regards Markus