Next Article in Journal
Clamping Fatigue Properties of Shrink-Fit Holder
Previous Article in Journal
Stable and Fast Planar Jumping Control Design for a Compliant One-Legged Robot
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Variable Density Filling Algorithm Based on Delaunay Triangulation

1
School of Mechanical Engineering, Yangzhou Polytechnic College, Yangzhou 225009, China
2
School of Automation, Harbin University of Science and Technology, Harbin 150080, China
*
Authors to whom correspondence should be addressed.
Micromachines 2022, 13(8), 1262; https://doi.org/10.3390/mi13081262
Submission received: 21 June 2022 / Revised: 23 July 2022 / Accepted: 3 August 2022 / Published: 5 August 2022

Abstract

:
The quality of the filling algorithm in additive manufacturing directly affects the strength of the part. The commonly used 3D printing filling algorithm at this stage is the classic filling algorithm. The density of each part in the filling region is the same, and there is a cavity structure in the transverse direction, which makes the strength of the part in the transverse direction lower. Therefore, this paper proposed a new filling algorithm—variable density filling algorithm based on Delaunay triangulation. First, we performed concave-polygon-convex decomposition on the filling area to form printing sub-regions; then, the filling density value was set according to the required intensity of each region, and we used the Poisson disk sampling algorithm to generate the filling point set. Finally, Delaunay triangulation was performed on the generated point set to generate filled traces. The comparison with the two commonly used classical filling algorithms proves that the algorithm can improve the strength of the part to a certain extent, and the printing time and the consumption of consumables will not increase significantly.

1. Introduction

3D printing technology uses modeling, layering, path planning, stack printing, and other steps to generate 3D models and make parts [1,2,3]. 3D printing parts have been widely used in aerospace, military industry and weapons, automobiles and racing cars, electronics, biomedicine, dentistry, jewelry, games, consumer goods and daily necessities, food, construction, education, and many other fields, and have become a rapidly developing trend [4,5,6,7,8]. Filling path planning is an important process link in 3D printing, the generated filling pattern directly affecting the strength of the printing model [9,10]. The commonly used filling algorithms at this stage include straight line filling and contour offset filling, etc., but there are holes in a certain direction, resulting in insufficient strength of printed parts [11,12].
In order to solve the defects of the above-mentioned filling algorithm, researchers have conducted a lot of improvement research on the filling method. Literature [13] proposed a method to automatically fill the contour obtained by 3D scanning, generate the surface from the points near the contour, and fill the contour area by generating point sequence on the surface. This method is suitable for structures filled with a large number of holes, as the point sequence interpolation of the cavity region is performed automatically without user input. Soo K. M et al. proposed the use of 3D warping technology to effectively fill the holes generated when creating a virtual-viewpoint image [14]. In order to reduce the blurring effect in the hole region filled by the conventional algorithm and to enhance the texture quality of the generated virtual view, in-painting algorithm was used, and the boundary noise in the initial virtual view obtained by 3D warping was also removed. After 3D warping, relative location of the background to the holes was estimated, and then the pixels adjacent to the background were preferentially filled by using the information of the adjacent objects to obtain better results. Furthermore, when searching for the most similar patches, the temporal inconsistency between frames can be reduced by extending the search region up to the previous frame. Zhang et al. proposed a novel filling algorithm, which can realize the connection of sub-regions by using Fermat spiral on the basis of continuous filling, and integrates convex decomposition, PCA, variable spacing filling, and other operations, further improving the printing efficiency [15]. Jin et al. proposed an approach to parallel filling path generation based on adaptive gaps for fused deposition printers [16]. The proposed tool-path generation method first determines the inclination of the reference line according to the lower number of sharp corners in the paths. Then, the filling area is divided into three stages. In the pre-sweeping stage, a group of parallel lines with predetermined gap and optimized inclination are used to intersect the filling boundary and store the intersection points between them. The second stage adjusts some sweeping line segments which satisfy several specific conditions, and the last stage divides the filling areas into several sub-regions according to the selected sweeping lines. Subsequently, the sweeping lines in each sub area are adjusted separately to adapt to the uniform gap. Finally, some adjacent sub-paths are connected to reduce the number of uncut paths. Other methods, such as using machine learning algorithm to realize adaptive filling, are still in the experimental stage, and the prediction accuracy of the model cannot fully meet the actual machining requirements.
The above-mentioned filling methods of 3D printing are based on the existing filling path planning algorithms, and use various methods to compensate the printing cavity to improve the printing intensity, but none of them have generalization, and the degree of industrial practicality is weak. Literature [12] draws the following conclusions by comprehensively comparing the mechanical properties of various filling schemes: the 2D infill patterns outperformed the tested 3D infill patterns on both strength-to-weight ratio and peak load. Among the 2D infill patterns that performed well, Grid, Cross, and Triangles seem to be the best patterns to choose in order to have a light part that will support one-dimensional compressive loading. Overall, infill densities of 80% or 100% are more efficient than lesser ones in terms of strength-to-weight ratio. Depending on the situation, when a desired part does not have the need to be as light as possible, it would be recommended to use a high infill density or even print it in full. However, it is obvious that high-density filling increases the cost of printing and the weight of the printing part. Therefore, in this study, we proposed a novel filling algorithm, which uses Delaunay triangulation net as the filling pattern from the filling mechanism to enhance the strength of the printing part.
Our method can set the filling density according to the required strength of each printing region. Combined with the filling pattern of the triangulation network, it can make the stress on all segments of the printing part more uniform, and will not significantly increase the printing consumables. Therefore, our print filling method not only improves the overall load strength of the printing part, but also has strong industrial practicability, and can also meet individual needs well.

2. Partitioning and Convex Decomposition of Filling Regions

Since the Delaunay triangulation network needs to be constructed within convex polygons, illegal triangles will be generated if the Delaunay triangulation network is constructed within concave polygons [17], so the filling regions need to be divided first, and convex decomposition performed on the concave polygon [18].
In additive manufacturing, STL files are stored in the form of triangular patches. After the layering slices are completed, the set of contour line information points for each layer will be obtained, in which the outer contours are arranged counterclockwise. When the known contour is counterclockwise, it is only necessary to judge whether each point is a concave point. The vector formula of p i and its adjacent two points p i 1 and p i + 1 on the contour are P i 1 P i and P i P i + 1 . By calculating the value of | P i 1 P i × P i P i + 1 | , we can determine whether point p i is a concave point. Let the coordinates of the three points p i 1 , p i and p i + 1 be x i 1 , y i 1 , x i , y i and x i + 1 , y i + 1 , respectively, then the vector expression formed by these three points is Formula (1).
P i 1 P i = ( x i x i 1 , y i y i 1 ) P i P i + 1 = ( x i + 1 x i , y i + 1 y i )
When calculating the concave point, the vector cross product formula need to be used. The cross-product formula of any two vectors   a and   b is as Formula (2).
  a ×   b = i j k x a y a z a x b y b z b
Let z a = z b = 0 and substitute P i 1 P i   P i P i + 1 into Formula (2) to obtain Formula (3).
P i 1 P i × P i P i + 1 = x i x i 1 × y i + 1 y i x i + 1 x i × y i y i 1
The positive and negative of Formula (3) are used to judge the concavity and convexity of points, which can be classified into the following three situations:
(1)
When | P i 1 P i × P i P i + 1 | > 0 , the point p i is a convex point.
(2)
When | P i 1 P i × P i P i + 1 | = 0 , the three points are collinear.
(3)
When | P i 1 P i × P i P i + 1 | < 0 , the point p i is a concave point.
According to the above method, the infilled regions can be decomposed into one or more convex polygons to facilitate Delaunay triangulation.

3. Selection of Filling Point Set and Determination of Density

The method in this paper needs to generate random point sets first, and then perform Delaunay triangulation on the random point sets. Path planning and infilling are performed according to the grid generated by Delaunay triangulation. In the process of generating random points, if pseudo-random numbers are used to generate random points, the random seed is determined by the system clock. Therefore, when the algorithm is determined, the random seeds are certain, and the generated random points are basically fixed, which violates the original design intention of random point selection. Additionally, the generated point set has a low randomness, uneven distribution of random points, and poor infill effect. In view of this, Poisson-disk sampling is used to select random points to solve the problem of uneven distribution of random sampling points [19].
The input of Poisson-disk sampling includes the sampling region D, the minimum radius r of disk sampling and the constant k as the input, where the disk sampling radius determines the density of the point set, and the filling density is also changed by changing the disk sampling radius, k is the sample limit to be selected before rejecting in the algorithm, and k = 30 is usually selected. The specific process of sampling is as follows:
(1)
Initialize a grid; each cell stores at most one sampling disk point for storing samples and accelerating spatial search. The diagonal length of the cell is the radius r of the sampling disk, which ensures that no matter where the sampling disk is in the cell, the cell can be covered. The application of cell technology means that only the points in the 5 × 5 grid need to be considered when calculating the distance from the new point to the existing point, greatly reducing the amount of calculation.
(2)
Randomly select a sampling point, insert it into the sampling region grid, and initialize the active list with the sampling location stored at that index.
(3)
When the activity list is not empty, a random index is selected from it, and at most k points are uniformly selected from the annular region around point xi with radius r and 2r, as shown in Figure 1. Check if the 5 × 5 range where these points lie is within distance r of the existing samples. If a point is far enough from an existing sample point, it is taken as the next sample point and added to the active list. If no such point is found after k attempts, the point xi is removed from the active list.
The density of the points needs to be set when selecting points in the filling point set, and the filling density is controlled by setting the density of the points. Since points in the filling point set are selected by Poisson-disk sampling, set the sampling radius of Poisson disk. The filling density is the ratio of the filling traces area to the total area of the outline frame, and its expression is as shown in Formula (4).
ρ = S S
where, S’ is the area of the filling traces, and S is the total area surrounded by the contour line. Formula (5) is used to calculate the area of the filling traces:
S = l × d
where: l is the total path length of filling traces, and d is the width of filling trace. The unified trace width used in this experiment is 1.2 mm.
In this paper, when using Delaunay triangulation for filling, it is necessary to first determine the radius of Poisson selected points, and then perform Delaunay triangulation on the selected point set. The filling path can only be calculated after triangulation, and the meshes of each Delaunay triangulation are different. Through experiments, we found that when the radius of the Poisson-disk was set at 2 mm, the filling density was about 100%; when the sampling radius of the Poisson-disk was set at 4 mm, the filling density was about 50%; and when the sampling radius of Poisson-disk was set at 6 mm, the filling density was about 35%. In this way, through the inversion of many experiments, we obtained the relationship between the filling density and the radius as shown in Formula (6).
ρ = 2 r
We performed many experiments, compared Formula (4) with Formula (6), and verified that the density error difference between the two formulas was within 5%, so Formula (6) was used to set the filling density, and point sets selected with different radii are shown in Figure 2.
Figure 2 shows a simulation diagram of using Python to implement point selection. Points are selected in a 400 × 400 square region. The filling densities in Figure 2a–c are 10%, 40%, and 80%, respectively. It can be observed that the distribution of point sets was uniform, and there was no uneven distribution of randomly selected points. In the actual filling process, when variable density is used for filling, it is only necessary to set the filling density of each area respectively before selecting points, so that the effect of different densities of different printing areas on the same layer can be achieved.

4. The Network Construction Algorithm Based on Delaunay Triangulation

4.1. Local Optimization Procedure (LOP) Algorithm

When generating the Delaunay triangulation, some triangles that do not conform to the properties of the Delaunay triangulation are often generated [20], and the LOP algorithm is required for adjustment and optimization. The LOP algorithm is a local algorithm proposed by Lawson, which is used to judge whether the points outside the Delaunay triangulation are within its circumscribed circle [21]. It is judged according to the principle that the sum of opposite angles of cyclic quadrilateral is 180°. There are mainly the following three situations:
(1)
When sin ( A + D ) = 0 , the point D is just on the circumcircle of triangle ABC, and the diagonals do not need to be exchanged at this time, as shown in Figure 3a.
(2)
When sin ( A + D ) > 0 , point D is just outside the circumcircle of triangle ABC, and the diagonals do not need to be exchanged at this time, as shown in Figure 3b.
(3)
When sin ( A + D ) < 0 , the point D is just inside the circumcircle of the triangle ABC, and the diagonals need to be exchanged, as shown in Figure 3c.
In the process of generating triangulation net, due to the large number of generated triangulation net, and the point set of the triangulation also being randomly generated, certain errors cannot be avoided. Therefore, it is necessary to use the LOP optimization algorithm, which can make the triangulation network fully meet the property requirements of Delaunay triangulation.

4.2. Improved Network Construction Algorithm of Delaunay Triangulation

When constructing Delaunay triangulation network and filling triangulation network, although the calculation of the triangulation net growth algorithm is simple, the calculation amount is large and time-consuming [22]. The point-by-point insertion algorithm is slow in constructing a triangular network, and it is only suitable for convex polygons [23]. The divide-and-conquer algorithm mainly has high hardware requirements and also requires a large number of recursive algorithms, resulting in low running speed [24]. Based on the above points, our design optimizes and improves the construction algorithm of the Delaunay triangulation network. The main idea of the improved algorithm is to form a triangular network in parallel and segment by segment, as shown in Figure 4. The specific process is as follows.
(1)
The point set S generated by Poisson-disk sampling is bubble sorted by the abscissa and stored in the linked list A.
(2)
The X m a x X m i n in linked list A is calculated, and then stores it to facilitate the next step to construct the Delaunay triangulation by segment by segment.
(3)
Gradually advance from Xmin to Xmax when generating Delaunay triangulation. First, connect the polylines in the Y-axis direction that are closer to Xmin, and then find the points that are closest to each segment of the polyline in the point set to form a triangulation net. Then use the newly generated two sides as the base edge to find the closest point, and gradually advance to generate triangulation until all points in the current region form a triangulation.
(4)
When the triangulation of the previous region is completed, the irregular polyline close to the division line of the previous region is taken as the reference edge to construct the Delaunay triangulation of the next region until the triangulation of all regions is completed.
(5)
Perform LOP optimization on the Delaunay triangulation to ensure that each triangle conforms to the properties of the Delaunay triangulation.
The test found that the improved Delaunay triangulation method has a better effect in generating Delaunay triangulation network, because it uses the parallel propulsion network to generate Delaunay triangulation, with faster generation speed, less computation, and less hardware requirements.

4.3. Implementation of Variable Density Filling Algorithm Based on Delaunay Triangulation

In the filling process, the printed parts may require different strengths in different regions, but the classical filling algorithm can only fill with the same density. Our algorithm can preset the filling region density of different filling region, and select points in different filling regions with different Poisson sampling radii; after the concave polygon is convexly decomposed, each sub-convex polygon is filled with the required density value so as to achieve different filling density effect in different regions. The specific flow of the algorithm is as follows:
(1)
The information points of the contour are derived, and the contour is segmented by using the convex decomposition algorithm of concave polygons to obtain multiple sub convex polygons, and then each convex polygon is encoded.
(2)
The preset filling density of each region, that is, the Poisson disk sampling radius, samples and selects points in the convex polygon obtained in step (1).
(3)
Delaunay triangulation is performed on the point set selected in step (2) to generate a triangulation network.
(4)
The triangulation generated in step (3) is optimized by using the LOP optimization algorithm so that the obtained triangulation conforms to the properties of the Delaunay triangulation.
(5)
The Delaunay triangulation obtained after optimization is the filling path, which is exported to the G-code file for printing. The filling algorithm flow is shown in Figure 5.

5. Experimental Research and Analysis

Based on the open-source code of Cura Engine, it was developed using Visual Studio2017 (Microsoft Corp, Redmond, WA, USA) and Pycharm2020 (JetBrains, Prague, Czech Republic) platforms, and the algorithm was implemented using C++ language and Python language joint debugging, and then embedded in the FDM-3D printer control system for algorithm performance testing. The experiment used an XYZ FDM-3D machine, the printing model material was PLA plastic, different filling methods were used, and the same printing parameters were used. The printing process parameters and values of the experiment are shown in Table 1.
Two groups of models were selected for the test simulation. One model uses the H-shaped bracket for the strength test, and the other group models uses the five-point star as the complex polygon to test and study whether there will be problems in the filling of complex polygons. At the same time, five-point star model was used for the variable density filling algorithm based on Delaunay triangulation.
The slice simulation of the two test models based on the Delaunay triangulation filling algorithm is shown in Figure 6. It can be observed that the filling based on the Delaunay triangulation filling algorithm did not appear to be too dense or too sparse, and the filling was uniform.
The comparison analysis and verification between Delaunay triangulation filling algorithm and classical filling method (contour bias filling and linear filling) were conducted. The test was conducted at 30% filling density respectively. Different filling algorithms were used to generate G-code files. The G-code files were imported into the 3D printing control system for the printing test. The printed finished products are shown in Figure 7.
Figure 7a shows the model entity picture filled with contour offset filling, Figure 7b shows the model entity picture filled with straight lines filling, and Figure 7c shows the model entity picture filled with Delaunay triangulation filling. Through the observation of the physical model, it was found that there was a cavity structure in a certain direction for contour offset filling and linear filling, so the force in this direction was relatively weak. However, the filling algorithm based on the Delaunay triangulation had filling traces in all directions, and the filling also tended to be more uniform. In this experiment, reverse engineering was performed on the G-code code file generated after model slicing, reverse generating the STL model file, and then the format of STL model file was converted for finite element analysis to test the stress strength in each direction of the model under three filling densities. Firstly, the lateral stress analysis was carried out on the H-type bracket. The unit of network division was 5 mm. The outer side of one long side of the H-shaped bracket was used as the stress surface for fixation, and then the uniformly increased pressure was applied to the other long side of the H-type bracket. The pressure step was 20 Pa, and the maximum pressure was 200 Pa. A total of 10 steps of pressure were used for stress analysis. Finite element simulation using ANSYS software is shown in Figure 8. The shape after slicing with offset filling is shown in Figure 8a, the shape after slicing with linear filling is shown in Figure 8b, and the shape after slicing with Delaunay triangle filling is shown in Figure 8c.
It can be seen from the transverse pressure simulation diagram that the deformation of the model filled with the Delaunay triangulation network was the smallest, while the deformation of the model filled with straight line filling and offset filling was more serious due to its cavity structure, so the model filled with Delaunay triangulation had higher stress intensity. The displacement changes of each model under pressure are shown in Table 2.
After the transverse test of the filling, the longitudinal test was carried out, that is, the section test was carried out for it. A more complex five-pointed star model was used to test, and tests the stress conditions of the three kinds of filling were under the same pressure conditions as the previous experiment. The finite element simulation is shown in Figure 9.
It can be seen from the longitudinal pressure simulation diagram that the deformation of the model filled with Delaunay triangulation network was still the smallest, while the deformation of offset filling and linear filling was more serious. From the force cloud diagram, it can be seen that the filling algorithm based on Delaunay triangulation network had uniform stress, which conforms to the original design. It can be seen from the stress cloud diagram that the filling algorithm based on the Delaunay triangulation was uniformly stressed, which is in line with the original intention of the design. The deformation displacement of each model after pressure is shown in Table 3. By analyzing the deformation displacement, it can be seen that the displacement distance of the filling algorithm based on Delaunay triangulation network was the smallest, so the model based on Delaunay triangulation network filling algorithm had higher stress strength.
The comparison of printing consumables and printing time is shown in Table 4. Compared with the experimental data, the results showed that when different filling methods were used for printing, our method consumed a little more consumable material and took a little longer to print. However, the filling algorithm based on Delaunay triangulation obtained better strength effects, and the model did not appear to have precision distortion. Therefore, the filling algorithm based on Delaunay triangulation has a better printing effect and is more practical in actual production.
When the variable density filling algorithm was used for filling, in order to observe the density change of each region, the five-point star model was still used. Firstly, the five pointed star model was decomposed into five triangles and a central Pentagon by concave-polygon-convex decomposition, and then the filling density value of each filling region was set, that is, the sampling radius of Poisson disk sampling was set to achieve the effect of different filling density according to the sampling radius of each region. Finally, Delaunay triangulation was performed on the set of points in each region to generate the filling traces. The filling results are shown in Figure 10. Figure 10a is the filling software simulation in which region 1 and region 2 use 30% filling density, region 3 uses 20% filling density, region 4 and region 5 use 50% filling density, and region 6 uses 10% filling density. Figure 10b shows the printing entity of the variable density filling algorithm. By observing the software simulation diagram and the physical printing diagram, we can see that using a variety of filling densities can ensure the uniformity of filling, and the printed parts also have good effects. The variable density filling algorithm is finally realized.

6. Conclusions

When the traditional filling method is used for filling with slicing software, the printing intensity is poor, and the longitudinal force is often better and the transverse force is weak. However, the filling algorithm based on Delaunay triangulation network cannot only makes up for the above shortcomings, but also increase the filling density for weak regions, making the strength of the parts better. In addition, as we all know, in the process of practical application, the load on each region of the part is different. Our printing method can set different printing densities according to the distribution of the load of the part, so that the force on the component is more uniform in the process of use, so as to obtain a better application effect. In terms of printing time and consumption of consumable material, the filling algorithm based on Delaunay triangulation network proposed in this paper did not significantly increase the printing time compared to the classical filling algorithm, and did not significantly increase the consumption of consumable material. Moreover, higher-strength printed parts were obtained. However, the variable density filling algorithm studied in this paper was researched in an ideal state. The actual printing process is deformed due to machine accuracy problems, and the printed parts are deformed due to temperature field changes during the extrusion process of the extrusion head. These reasons mean the deviation is not fully considered, which needs to be comprehensively considered and eliminated in engineering practice.
We will further study the segmentation of the filling regions, and set the density value of each filling region according to the wishes of the designer and the stress state in the actual use process, so as to improve the practicality and personalized setting of 3D printing. Therefore, the variable density filling algorithm based on Delaunay triangulation has a very wide range of potential practicality, and the print results will be more personalized.

Author Contributions

Conceptualization, Y.Q., N.L. and X.O.; methodology, Y.Q., N.L. and X.O.; software, Y.Q. and X.O.; formal analysis, Y.Q., N.L. and X.O.; investigation, Y.Q., N.L. and X.O.; resources, Y.Q., N.L.; writing—original draft preparation, Y.Q., X.O.; writing—review and editing, Y.Q., N.L. and X.O.; project administration, N.L., Y.Q.; funding acquisition, N.L., Y.Q. All authors have read and agreed to the published version of the manuscript.

Funding

This research was supported by the Yangzhou City, 2021. Leading talents of “Green Yang Jinfeng project” (Grant no. YZLYJFJH2021CX044); Science and Technology Talent support project of Jiangsu Province, China (Grant no. FZ20211137).

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Data can be requested from the corresponding author.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Dudek, P. FDM 3D Printing Technology in Manufacturing Composite Elements. Arch. Metall. Mater. 2013, 58, 1415–1418. [Google Scholar] [CrossRef]
  2. Wang, Q.; Jiang, M.W.; Guo, S.G. Additive Manufacturing Industry Development Status and Tendency Analysis in China. Sci. Technol. Ind. China 2018, 2, 52–56. [Google Scholar]
  3. Gao, Q.; Zheng, J.L. Research on the 3D Printing Technology Chasm: The Features, Causes and Leapfrog Path. J. Dalian Univ. Technol. Soc. Sci. 2016, 37, 37–44. [Google Scholar]
  4. Haleem, A.; Javaid, M. Additive manufacturing applications in industry 4.0: A review. J. Ind. Integr. Manag. 2019, 4, 1930001. [Google Scholar] [CrossRef]
  5. Tian, T.Z.; Hua, L. Research on Sculpture Art Based on 3D Printing Technology Tingzhou Tian, Lei Hua. J. Phys. Conf. Ser. 2020, 1533, 022030. [Google Scholar] [CrossRef]
  6. Abdulhameed, O.; Al-Ahmari, A.; Ameen, W.; Mian, S.H. Additive manufacturing: Challenges, trends, and applications. Adv. Mech. Eng. 2019, 11, 1687814018822880. [Google Scholar] [CrossRef] [Green Version]
  7. Melocchi, A.; Uboldi, M.; Cerea, M.; Foppoli, A.; Maroni, A.; Moutaharrik, S.; Gazzaniga, A. A graphical review on the escalation of fused deposition modeling (FDM) 3D printing in the pharmaceutical field. J. Pharm. Sci. 2020, 109, 2943–2957. [Google Scholar] [CrossRef]
  8. García-Dominguez, A.; Claver, J.; Sebastián, M.A. Integration of Additive Manufacturing, Parametric Design, and Optimization of Parts Obtained by Fused Deposition Modeling (FDM). A Methodological Approach. Polymers 2020, 12, 1993. [Google Scholar] [CrossRef] [PubMed]
  9. Kristiawan, R.B.; Imaduddin, F.; Ariawan, D.; Arifin, Z. A review on the fused deposition modeling (FDM) 3D printing: Filament processing, materials, and printing parameters. Open Eng. 2021, 11, 639–649. [Google Scholar] [CrossRef]
  10. Jiang, J.C.; Ma, Y.S. Path Planning Strategies to Optimize Accuracy, Quality, Build Time and Material Use in Additive Manufacturing: A Review. Micromachines 2020, 11, 633. [Google Scholar] [CrossRef] [PubMed]
  11. Lalegani Dezaki, M.; Mohd Ariffin, M.K.A. The Effects of Combined Infill Patterns on Mechanical Properties in FDM Process. Polymers 2020, 12, 2792. [Google Scholar] [CrossRef] [PubMed]
  12. Pernet, B.; Nagel, J.K.; Zhang, H. Compressive Strength Assessment of 3D Printing Infill Patterns. Procedia CIRP 2022, 105, 682–687. [Google Scholar] [CrossRef]
  13. Muraki, Y.; Nishio, K.; Kanaya, T.; Kobori, K.I. An Automatic Hole Filling Method of Point Cloud for 3D Scanning. In Proceedings of the 25th International Conference in Central Europe on Computer Graphics, Visualization and Computer Vision in co-operation with EUROGRAPHICS Association, Plzen, Czech Republic, 29 May–2 June 2017; pp. 65–70. [Google Scholar]
  14. Soo, K.M.; Jisang, Y. Hole Filling Algorithm for a Virtual-viewpoint Image by Using a Modified Exemplar Based In-painting. J. Electr. Eng. Technol. 2016, 11, 1003–1011. [Google Scholar]
  15. Zhang, Y.; Wang, T.; Zhao, Y.; Li, H.; Liu, B.; Wang, G. An Optimal Filling Path Planning Based on Principal Component Analysis. In Proceedings of the 2020 4th Annual International Conference on Data Science and Business Analytics (ICDSBA), Changsha, China, 5–6 September 2020; pp. 139–143. [Google Scholar]
  16. Jin, Y.A.; He, Y.; Xue, G.H.; Fu, J.Z. A Parallel-based Path Generation Method for Fused Deposition Modeling. Int. J. Adv. Manuf. Technol. 2015, 77, 5–8. [Google Scholar] [CrossRef]
  17. Wang, G.; Shen, L.; Zhao, J.; Liang, H.; Xie, D.; Tian, Z.; Wang, C. Design and compressive behavior of controllable irregular porous scaffolds: Based on voronoi-tessellation and for additive manufacturing. ACS Biomater. Sci. Eng. 2018, 4, 719–727. [Google Scholar] [CrossRef]
  18. Li, Z.; Zhang, Z.; Liu, H.; Yang, L. A new path planning method based on concave polygon convex decomposition and artificial bee colony algorithm. Int. J. Adv. Robot. Syst. 2020, 17, 1729881419894787. [Google Scholar] [CrossRef]
  19. Park, C.; Pan, J.; Manocha, D. Parallel Motion Planning Using Poisson-Disk Sampling. IEEE Trans. Robot. 2017, 33, 359–371. [Google Scholar] [CrossRef]
  20. Jiang, Y.; Liu, Y.T.; Zhang, F. An efficient algorithm for constructing Delaunay triangulation. In Proceedings of the 2010 2nd IEEE International Conference on Information Management and Engineering, Chengdu, China, 16–18 April 2010; pp. 600–663. [Google Scholar]
  21. Li, L.; Wang, W. Improved use of LOP for curve skeleton extraction. Comput. Graph. Forum 2018, 37, 313–323. [Google Scholar] [CrossRef]
  22. Shewchuk, J.R. Delaunay refinement algorithms for triangular mesh generation. Comput. Geom. 2002, 22, 21–74. [Google Scholar] [CrossRef] [Green Version]
  23. Jie, Y.; Pin, L.; Changwen, Z. A comparative research on methods of delaunay triangulation. J. Image Graph. 2010, 15, 1158–1167. [Google Scholar]
  24. Perumal, L. New approaches for Delaunay triangulation and optimization. Heliyon 2019, 5, e02319. [Google Scholar] [CrossRef] [PubMed] [Green Version]
Figure 1. Poisson-disk sampling.
Figure 1. Poisson-disk sampling.
Micromachines 13 01262 g001
Figure 2. Poisson disk sampling. (a) 10% fill density; (b) 40% fill density; (c) 80% fill density.
Figure 2. Poisson disk sampling. (a) 10% fill density; (b) 40% fill density; (c) 80% fill density.
Micromachines 13 01262 g002
Figure 3. The relationship between point D and circumcircle of triangle ABC. (a) Point D is on the circumcircle; (b) Point D is outside the circumcircle; (c) Point D is inside the circumcircle.
Figure 3. The relationship between point D and circumcircle of triangle ABC. (a) Point D is on the circumcircle; (b) Point D is outside the circumcircle; (c) Point D is inside the circumcircle.
Micromachines 13 01262 g003
Figure 4. Improved Delaunay triangulation algorithm.
Figure 4. Improved Delaunay triangulation algorithm.
Micromachines 13 01262 g004
Figure 5. The flow chart of filling algorithm.
Figure 5. The flow chart of filling algorithm.
Micromachines 13 01262 g005
Figure 6. Cura simulation model.
Figure 6. Cura simulation model.
Micromachines 13 01262 g006
Figure 7. Printed physical objects. (a) Contour offset filling; (b) straight lines filling; (c) Delaunay triangulation filling.
Figure 7. Printed physical objects. (a) Contour offset filling; (b) straight lines filling; (c) Delaunay triangulation filling.
Micromachines 13 01262 g007
Figure 8. Finite element simulation diagram. (a) Contour offset filling; (b) straight lines filling; (c) Delaunay triangulation filling.
Figure 8. Finite element simulation diagram. (a) Contour offset filling; (b) straight lines filling; (c) Delaunay triangulation filling.
Micromachines 13 01262 g008
Figure 9. Finite element simulation diagram. (a) Contour offset filling; (b) straight lines filling; (c) Delaunay triangulation filling.
Figure 9. Finite element simulation diagram. (a) Contour offset filling; (b) straight lines filling; (c) Delaunay triangulation filling.
Micromachines 13 01262 g009
Figure 10. Variable density filling experiment based on Delaunay triangulation. (a) Filling software simulation, where the regions of 1 and 2 are 30% filling density, the region 3 is 20% filling density, the regions of 4 and 5 are 50% filling density, the region 6 is 10% filling density; (b) printing entity based on variable density filling algorithm.
Figure 10. Variable density filling experiment based on Delaunay triangulation. (a) Filling software simulation, where the regions of 1 and 2 are 30% filling density, the region 3 is 20% filling density, the regions of 4 and 5 are 50% filling density, the region 6 is 10% filling density; (b) printing entity based on variable density filling algorithm.
Micromachines 13 01262 g010
Table 1. Basic parameters of filling and printing.
Table 1. Basic parameters of filling and printing.
The Printing ParametersParameter Values
Extrusion head temperature190 °C
The nozzle diameter0.6 mm
Wall thickness1.2 mm
The width of filling line1.2 mm
Filling density30%
Printing speed50 mm/s
The no-load moving speed60 mm/s
Table 2. Longitudinal displacement change table.
Table 2. Longitudinal displacement change table.
Step
Number
Offset
Displacement (m)
Linear Displacement (m)Delaunay Triangulation
Displacement (m)
1 1.3333 × 10 4 4.9738 × 10 6 3.8611 × 10 8
2 2.6666 × 10 4 9.9476 × 10 6 7.7223 × 10 8
3 3.9999 × 10 4 1.4921 × 10 5 1.1583 × 10 8
4 5.3332 × 10 4 1.9895 e × 10 5 1.5445 × 10 7
5 6.6665 × 10 4 2.4869 × 10 5 1.9306 × 10 7
6 7.9998 × 10 4 2.9843 e × 10 5 2.3167 × 10 7
7 9.3331 × 10 4 3.4817 × 10 5 2.7028 × 10 7
8 1.0666 × 10 3 3.9790 × 10 5 3.0889 × 10 7
9 1.2000 × 10 3 4.4764 × 10 5 3.4750 × 10 7
10 1.2900 × 10 3 4.9738 × 10 5 3.8611 × 10 7
Table 3. Transverse displacement change table.
Table 3. Transverse displacement change table.
Step
Number
Offset Displacement (m)Linear Displacement (m)Delaunay Triangulation
Displacement (m)
1 2.7501 × 10 10 2.2978 × 10 10 2.2083 × 10 10
2 6.1878 × 10 10 5.1700 × 10 10 4.9686 × 10 10
3 9.6254 × 10 10 8.0422 × 10 10 7.7289 × 10 10
4 1.3063 × 10 9 1.0914 × 10 9 9.9371 × 10 10
5 1.6501 × 10 9 1.3787 × 10 9 1.3250 × 10 9
6 1.9938 × 10 9 1.6659 × 10 9 1.6010 × 10 9
7 2.3376 × 10 9 1.9531 × 10 9 1.8770 × 10 9
8 2.6814 × 10 9 2.2403 × 10 9 2.1530 × 10 9
9 3.0251 × 10 9 2.5276 × 10 9 2.4291 × 10 9
10 3.3689 × 10 9 2.8148 × 10 9 2.7051 × 10 9
Table 4. Three kinds of filling data: comparison table.
Table 4. Three kinds of filling data: comparison table.
ModelsFilling ModesConsumption of
Consumable
Material (g)
Printing Time (min)
H-type bracketContour offset filling83184
Straight lines filling89197
Delaunay triangulation filling94213
Five-point starContour offset filling2175
Straight lines filling2380
Delaunay triangulation filling2787
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Qiao, Y.; Lv, N.; Ouyang, X. Variable Density Filling Algorithm Based on Delaunay Triangulation. Micromachines 2022, 13, 1262. https://doi.org/10.3390/mi13081262

AMA Style

Qiao Y, Lv N, Ouyang X. Variable Density Filling Algorithm Based on Delaunay Triangulation. Micromachines. 2022; 13(8):1262. https://doi.org/10.3390/mi13081262

Chicago/Turabian Style

Qiao, Yujing, Ning Lv, and Xuefeng Ouyang. 2022. "Variable Density Filling Algorithm Based on Delaunay Triangulation" Micromachines 13, no. 8: 1262. https://doi.org/10.3390/mi13081262

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop