G-code importer and re-exporter Add-on for Blender.
G-code gets converted back to a mesh and can be modified with all of Blenders modeling tools.
Concept of weight maps can be extended to other G-code commands as well. By default every import also creates a vertex color map called 'Tool', which depending on the underlying color, will insert a different G-code command for each color. More details on https://github.com/Heinz-Loepmeier/nozzleboss