| With the advent of the era of big data,more and more applications are developing in the direction of data,and users' needs for different applications are changing,and they are gradually shifting from complex back-end environments to simple web front-end browser in.At the same time,as one of today's research hotspots,3D printing technology's application on the Web has also become an important topic for many scholars.With the continuous development of 3D printing technology,people's manufacturing methods and demands for corresponding products have changed,while the lightweight porous structure model can meet the changing needs of users due to its excellent physical characteristics.In order to simplify the application of 3D printing and meet the requirements of efficient and high-quality printing,this paper makes an in-depth study on the layering and filling process of 3D printing technology of the porous structure model in Web-end environment.Main research contents and related results are as follows:(1)With Google browser as the experimental platform,WebGL is used to achieve online visual rendering and display of porous structure model.(2)A direct slicing algorithm based on Web environment is adopted.This method firstly establishes the geometric topological relationship of the model imported by the Web browser,and then determines the section profile of each layer through layered slices.This method can not only quickly deal with the geometric model with large amount of data on the Web,but also avoid the wrong section profile relation.(3)When the section contour is filled based on Web environment,a centroid segmentation method is proposed to judge the bias limit of the scanning track loop.In this method,the center of mass of the trajectory ring is used as the dividing point and the bias limit is determined by splitting the trajectory ring.The method can accurately judge the bias limit of different types of trajectory rings.(4)Put forward the method of mixed filling of offset line and fermat helix.In this method,helical offset lines are classified as trace clusters,and fermat helices areformed by connecting fermat helices.The method makes full use of the advantages of high-accuracy of biasing and fermat spiral to realize the on-line filling processing of the porous structure model.(5)In order to achieve the overall continuity of the filling path,a fermat spiral trajectory loop tree was constructed and the corresponding trajectory lines of each tree node were connected.Meanwhile,point-by-point migration method was proposed to deal with the non-traditional self-intersection in the connection process.The method is reconnected by fine tuning the starting and stopping points,and the method has high algorithm stability.(6)Combined with the methods in this paper,a 3D printing path planning application platform based on Web browser page was designed and built.The platform not only can real-time display the 3D model in the browser,also lets users according to their own needs to choose different scan line 3D printing and filling of the model,in addition,the platform integrates some commonly used function of model transformation and the human-computer interaction function,mainly includes:texture,material substitution,rotation,scaling,the menu bar interaction. |