Applied Sciences (Sep 2019)
A G-Code Generator for Volumetric Models
Abstract
In layered manufacturing (LM), slicers are employed to convert input geometric models into G-codes. Conventional slicers accept only surface models as input data. Thus, volumetric models have to be converted into polygonal representations to fit the data format of the slicers. This results in extra computational costs and geometric errors. In this article, we present an efficient slicer aiming to generate G-codes for volumetric models. At first, our slicer computes the printing direction by exploring the inertia tensor of the input model to enhance the stability of the printed part and to decrease the build time. Then, it detects and classifies overhangs in the input model and generates necessary support structures by using a pattern-based method. Thirdly, the proposed slicer divides the input model into the skin and internal regions and cuts the model into 2D images. Subsequently, these images are transformed into toolpaths by utilizing texture mapping and graph traversal methods. Finally, the resultant toolpaths are smoothed to reduce staircases and encoded into G-codes. Test results verify that the proposed slicer produces decent G-codes for volumetric models. Scanned objects hidden in volume data can be directly manufactured without generating intermediate polygonal representations. LM processes become more efficient.
Keywords