3D voxel model from 3d printer GCODE


I am trying to create an as-manufactured model of a solid model through 3d printing. Idea is to visualize and study how a solid model will actually be built without actually printing it. One possible way is to sweep the cross-section profile ( of material flowing out of nozzle) through the gcode path and take a union of resulting geometries. Is there any way Monolith can import gcode or path generated by gcode in some other form? Any help will be much appreciated. Thank you.