| As one of the representative technologies of the emerging manufacturing industry,3D printing(Three-dimensional printing)has been widely used in many fields,including medical pharmacy,machinery manufacturing,aerospace and so on,after nearly half a century of rapid development.Among them,molten deposition printing(FDM)technology has been widely used in the field of desktop 3D printing due to its low cost,convenient operation and simple equipment.In 3D printing,the slicing process of digital model directly affects the final printing quality and efficiency.Therefore,this thesis mainly focuses on slice stratification and filling contour path planning in the process of 3D printing data processing,so as to improve the molding accuracy and efficiency.The main contents and relevant conclusions of this thesis are as follows:Firstly,the format characteristics of STL model files and the mode of importing model data are expounded,focusing on the optimization of redundant vertices in STL model files.By designing hash function and using hash table,the data redundancy is reduced and the data processing speed is accelerated.Second,based on the in-depth analysis of the ladder effect in 3D printing and the offset and loss of model features,an improved adaptive layered slicing algorithm is proposed to effectively preserve model features: Firstly,the model is adaptively coarse stratified using the apex height method,then the model features are identified and the feature heights are recorded according to the definition of feature points,lines and surfaces,and the plane is adaptively subdivided based on the layer thickness adjustment method of surface angles and vertices.The algorithm can effectively improve the surface quality of the model and reduce the loss of model features in the printing process.Third,analyze the variety of contour scanning filling method,adopt a kind of composite filling scanning methods fill contours inside,and the more profile cross section under idle motion path is analyzed,the characteristics of the design target function,using an improved genetic algorithm to find the shortest spare travel paths,and then improve the efficiency of the model of the molding,Taking the test model with multiple polygonal inner contours as an example,the proposed method can reduce the empty travel path of filling contours by about 10.2%.Finally,this thesis introduces the FDM 3D printing experimental platform and the generation mode of G-code,and uses the experimental platform to carry out the printing experiment.The relevant experiments show that the proposed slice-layering algorithm and contour path planning algorithm can effectively improve the solid surface quality and solid forming efficiency in practical application. |