Next Article in Journal
Hierarchies of the Korteweg–de Vries Equation Related to Complex Expansion and Perturbation
Next Article in Special Issue
An Analytic Solution for 2D Heat Conduction Problems with General Dirichlet Boundary Conditions
Previous Article in Journal
Non-Parametric Hypothesis Testing for Unknown Aged Class of Life Distribution Using Real Medical Data
Previous Article in Special Issue
An Asymmetric Model Position Dependent Mass: Quantum Mechanical Study
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Hermite Surface Triangle Modeling Method Considering High-Precision Fitting of 3D Printing Models

1
Institute of Advanced Structure Technology, Beijing Institute of Technology, Beijing 100081, China
2
School of Mechanical Engineering, Beijing Institute of Technology, Beijing 100081, China
*
Author to whom correspondence should be addressed.
Axioms 2023, 12(4), 370; https://doi.org/10.3390/axioms12040370
Submission received: 11 March 2023 / Revised: 9 April 2023 / Accepted: 10 April 2023 / Published: 11 April 2023
(This article belongs to the Special Issue Applied Mathematics in Energy and Mechanical Engineering)

Abstract

:
Three-dimensional printing is a layer-by-layer stacking process. It can realize complex models that cannot be manufactured by traditional manufacturing technology. The most common model currently used for 3D printing is the STL model. It uses planar triangles to simplify the CAD model. This approach makes it difficult to fit complex surface shapes with high accuracy. The fitting result usually suffers from loss of local features of the model, poor fitting accuracy, or redundant data due to face piece subdivision, which will cause problems such as poor manufacturing accuracy or difficult data processing. To this end, this paper proposes a method for constructing Hermite surface models considering high-precision fitting of 3D printing models. The mapping relationship between different surface triangles and the same base triangle is established by analyzing the characteristics of Hermite surface triangles in AMF format files and using the radial variation property. By constructing a cubic surface model with general parameters and combining the vertex and tangent vector information, a cubic Hermite curve and surface triangle model are obtained. A sampling mapping point solution method is proposed, which transforms the volume integration problem between models into the summation problem of sampling point height difference. Considering the mean deviation and variance in multiple directions of the sampling points, a method for calculating and evaluating the model fitting error is constructed. Finally, the effectiveness of the proposed method is verified by rabbit and turbine.
MSC:
08C05; 14P99; 51P05

1. Introduction

Three-dimensional printing is an advanced manufacturing technology that enables the “free fabrication” of complex structures quickly and efficiently with a simple device [1,2]. Compared with traditional manufacturing processes, it overcomes the limitations of complex configurations that are difficult to machine and reduces processing procedures, manufacturing cycle time, and manufacturing costs [3]. In recent years, 3D printing technology has been successfully applied in aerospace, automotive, and other areas [4,5,6,7,8]. Although 3D printing technology has made breakthroughs, due to its unique manufacturing process, the manufactured products usually have errors problems, which greatly restrict the widespread use of the technology [9].
There are three main sources of errors that exist in the 3D printing manufacturing process. The first error comes from the conversion between model formats, i.e., the process of converting a computer-aided design (CAD) model to a model in the format required for 3D printing; the second error comes from the layered slicing and path planning algorithm [10]; and the third error comes from the manufacturing accuracy of the device itself [11]. All of the above errors directly affect the molding accuracy of the final printed structure. However, compared to the latter two errors, if the first error cannot be effectively reduced, it will be difficult to manufacture a high-precision structure even if the subsequent process is highly accurate.
When performing 3D printing, we first need to build a digital model through modeling software. However, the model formats generated by different modeling software vary. They are not directly used to drive 3D printers. In order to generate Gcode that can “communicate” directly with the 3D printer, the model needs to be converted from different formats to the common STereoLithography (STL) format file for 3D printing. Currently, 3D printing models usually use planar triangles to form an envelope model to represent the CAD model, such as the more widely used STL model. It approximates the CAD model by setting the maximum chord height between the planar triangle and the surface of the model [12,13]. For this reason, when the CAD model has complex surfaces or high local accuracy, using planar triangles to simplify it will inevitably result in a loss of features and accuracy of the model [14]. In order to retain the features and accuracy of the CAD model as much as possible, the triangular facets of the overall model need to be continuously subdivided during the format conversion process. This will cause problems such as the too-large amount of model data or data redundancy, which inevitably increases the difficulty of model data processing [15]. Compared with the planar triangle model, the surface triangle model has higher degrees of freedom through parametric shape control. It can fit the surface and complex features of the model with high accuracy by using a relatively small number of face pieces, which effectively solves the problems caused by the simplification of the overall model by planar triangles. Several scholars have investigated the construction methods of surface triangles. Vlachos et al. [16] proposed a point-normal triangle in order to improve the visual quality in graphics rendering. Its main idea is to use a Bezier surface triangle (e.g., PN triangle) surface to replace each triangle in the original mesh. Compared with other Bezier triangles, PN triangles have lower degrees of freedom, and their shapes are influenced not only by the normal vectors but also by their different methods. Hamann et al. [17] constructs a C0 continuous surface by using a triangular rational quadratic Bezier surface to approximate a cubic linear interpolation function profile. The construction of Bezier surfaces requires control point information, which is harder to obtain directly when performing model fitting. NURBS and B-sample surfaces using surface approximation control meshes all have a similar problem to Bezier surfaces in that it is difficult to construct a direct mathematical relationship between the surface model and the original model.
Unlike surfaces using control meshes, surface shape control based on boundary conditions is simpler and more intuitive, and easier to achieve stitching between surfaces. Márta et al. [18] proposed a new definition of a surface that uses three triangular surfaces instead of the original boundary curves on the triangular parameter domain to generate a triangular surface. This interpolation scheme has affine transformation invariance [19], while the connection between the resulting surface and its components is continuous along a common boundary curve, except for the vertices. This method involves a tremendous amount of data input and also contains the combined operation of three surfaces, which greatly increases the computational cost. In addition, Hagen [20] proposes an interpolation method based on the Hermite operator, which implements the interpolation of the boundary curvature of an arbitrary triangle.
In order to meet the growing demand for model formats for 3D printing, the American Society for Testing and Materials (ASTM) Special Advisory Panel has creatively proposed a surface triangle in the additive manufacturing file (AMF) format [21,22]. The surface triangle consists of cubic Hermite curves [23], but they only define the boundary curves of the surface triangle and do not define the Hermite surface triangle model completely. According to the authors’ knowledge, there are few studies on Hermite surface triangles, but compared with other surface triangles, the definition and input quantity of Hermite surface triangles are relatively easy. It is not only suitable for 3D printing the required multi-surface sheet model, but also can make full use of the surface information contained in the original design model to achieve high accuracy fitting of the model. Therefore, how to construct a Hermite surface triangle model and make full use of the existing 3D printing manufacturing model information to fit the CAD model with high accuracy is a problem worthy of study.
Based on the above analysis, this paper proposes a Hermite surface triangle model construction method considering the high-precision fitting of 3D printing models. Affine transformation is used to establish the mapping relationship between multiple surface triangles and feature triangles. Then, the cubic surface model with general parameters is constructed and the cubic Hermite surface model is solved using the vertex and tangent vector information. Finally, the model fitting error calculation and comprehensive evaluation are realized by using the height difference between the model sampling points and the mapping points.

2. Hermite Surface Characterization

2.1. Definition of Hermite Curve in AMF

AMF is a format file that supports 3D printing, which contains the multi-color, multi-material, honeycomb structures and properties, etc. Its structure is similar to the STL file, which is a collection of several small spatial triangular facets. It is a model shell formed by combining triangular facets together after the triangular meshing of a 3D solid model. Each of its triangular face pieces consist of three vertices that obey the right-hand rule and whose corresponding normal vectors are directed outward. According to the AMF standard file, each edge of a surface triangle is a cubic Hermite curve, and the construction of each surface triangle depends on the Hermite curve of the boundary. Each Hermite curve is then determined by the position information of the triangle vertices recorded in the AMF file and the normal or tangential vector information. The surface triangles in the AMF file can be defined by the vertex and endpoint tangent vectors  t i j  of the edges, as shown in Figure 1a. It can also be defined directly by the normal vectors  n i  on the vertices, as shown in Figure 1b.
In the surface triangle definition of the AMF file, the cubic Hermite curve consists of two endpoints and their tangent vectors, as shown in Figure 2.
The mathematical expression of the cubic Hermite curve [24,25,26] can be described as:
h e s = 2 s 3 3 s 2 + 1 v 0 + s 3 2 s 2 + s t 0 + 2 s 3 + 3 s 2 v 1 + s 3 s 2 t 1
where  v 0  and  v 1  are the two endpoints of the curve.  t 0  and  t 1  are the two tangent vectors in the direction of the Hermite surface. The formula for calculating the tangent vector at any point on the curve can be formulated as:
t s = 6 s 2 6 s v 0 + 3 s 2 4 s + 1 t 0 + 6 s 2 + 6 s v 1 + 3 s 2 2 s t 1
when a normal vector is defined at the endpoint, it can be converted to a tangent vector by Equation (3).
t 0 = d 0 n 0 × d 0 × n 0 ( n 0 × d 0 ) × n 0
where  d 0 = v 1 v 0 n 0  and  n 1  are the normal vectors of the corresponding endpoints, respectively.

2.2. Determine Feature Triangle and Mapping Relationship

The Hermite surface triangle is constructed by means of cubic Hermite curves based on the vertices. The triangle is essentially parametric curves and each curve involves a parameter that takes values in the range [0, 1]. Therefore, its shape is theoretically related to the three parameters  η ξ  and  τ , and there is a certain correlation between  η ξ  and  τ , as shown in Figure 3.
The shape of the Hermite surface triangle is influenced by the location of its vertices, the direction of the tangent vectors, and the size of the tangent vectors. Each surface triangle has a different shape, so the shape of the base triangle formed by the three vertices of the surface triangle is also different. This would introduce too many parameters and increase the computational cost. To facilitate the calculation, the affine transformation is used in this subsection to simplify the calculation of the parameters in the surface triangle. Affine transformation is the process of transforming to another vector space by performing one linear transformation (multiplying by one matrix) and one translation (adding one vector) in the vector space. The basic idea of the proposed method is to use affine transformation to establish a mapping relationship between surface triangles, base triangles, and specified feature triangle. It can effectively normalize the complex problem and reduce the computational cost. More knowledge about affine transformations can be found in the literature [27].
According to the affine transformation property, all triangles can be obtained by the affine transformation of feature triangles. As shown in Figure 4, in the right-angle parameter domain, the feature triangle with right-angle characteristics and two right-angle sides of unit length is constructed with (0, 0), (1, 0), and (1, 1) as vertices, which satisfies the principle of regular shape and simple calculation. It effectively reduces the three parameter variables of the surface triangle to two. The feature triangle can be described as:
C = u , v | 0 v u 1
Based on the affine transformation property, any surface triangle and base triangle have a mapping relationship with the feature triangle  C , i.e., their three vertices correspond to the three vertices of the base triangle, as shown in Figure 5.
The mapping relationship between the surface triangles and the feature triangles is described by  S u , v , as shown in Figure 6 S u i , v i  is the corresponding point of any point  u i , v i  on the characteristic triangle in the surface triangle.
The mapping relation is essentially a parametric formulation of surface triangles, as it satisfies the one-to-one correspondence between surface triangles and characteristic triangle vertices. Therefore, the mapping relation between them can be described as:
x 00 = S 0 , 0 x 10 = S 1 , 0 x 11 = S 1 , 1
The model is greatly simplified by Equation (5), which can effectively reduce the complexity of subsequent calculations. It is worth noting that for different surface triangles, the corresponding  S u , v  is different.

3. Hermite Surface Triangle Model

In this subsection, based on the constructed feature triangles and mapping relations, the general parametric surface model is first established by the two parameters u and v. Then, the vertex coordinates and normal vectors of the Hermite curve are matched with the surface model to build the Hermite surface triangle model.
Let  S u , v  be a general two-parameter surface. To ensure the smoothness of the surface, set it as a cubic equation. Then, its mathematical expression can be described as:
S u , v = C 00 + C 10 u + C 01 v + C 20 u 2 + C 11 u v + C 02 v 2 + C 21 u 2 v + C 12 u v 2 + C 30 u 3 + C 03 v 3
where  C i j  is the three-dimensional characteristic coefficient.
C i j = C i j x C i j y C i j z , i , j [ 0 , 3 ]
As shown in Figure 7, from the vertex coordinates and tangent vector information of the surface triangles, it is known that  v = 0 u = 1  and  u = v  are the three boundary curve parameters characterized by the vertices  x 00 x 10 , and  x 11  in the counterclockwise direction, respectively. Let  S u , 0 S 1 , v , and  S u , u  be their corresponding curves, respectively.
Substitute the characteristic parameters  v = 0 u = 1 , and  u = v  into Equation (6). Then, the three boundary curves in the general parametric surface can be expressed as:
S u , 0 = C 00 + C 10 u + C 20 u 2 + C 30 u 3 S 1 , v = C 00 + C 10 + C 01 v + C 20 + C 11 v + C 02 v 2 + C 21 v + C 12 v 2 + C 30 + C 03 v 3 S u , u = C 00 + C 10 u + C 01 u + C 20 u 2 + C 11 u 2 + C 02 u 2 + C 21 u 3 + C 12 u 3 + C 30 u 3 + C 03 u 3
The Hermite boundary curve corresponding to Equation (8) is obtained by substituting the vertex and tangent vector information in Figure 8 into Equation (1).
S u , 0 = 2 u 3 3 u 2 + 1 x 00 + u 3 2 u 2 + u t 00 + 2 u 3 + 3 u 2 x 10 + u 3 u 2 t 10 S 1 , v = 2 v 3 3 v 2 + 1 x 10 + v 3 2 v 2 + v t 10 + 2 v 3 + 3 v 2 x 11 + v 3 v 2 t 11 S u , u = 2 u 3 3 u 2 + 1 x 00 + u 3 2 u 2 + u t 00 + 2 u 3 + 3 u 2 x 11 + u 3 u 2 t 11
Equations (8) and (9) are combined to obtain Equation (10).
C 00 + C 10 u + C 20 u 2 + C 30 u 3 = 2 u 3 3 u 2 + 1 x 00 + u 3 2 u 2 + u t 00 + 2 u 3 + 3 u 2 x 10 + u 3 u 2 t 10 C 00 + C 10 + C 01 v + C 20 + C 11 v + C 02 v 2 + C 21 v + C 12 v 2 + C 30 + C 03 v 3 = 2 v 3 3 v 2 + 1 x 10 + v 3 2 v 2 + v t 10 + 2 v 3 + 3 v 2 x 11 + v 3 v 2 t 11 C 00 + C 10 u + C 01 u + C 20 u 2 + C 11 u 2 + C 02 u 2 + C 21 u 3 + C 12 u 3 + C 30 u 3 + C 03 u 3 = 2 u 3 3 u 2 + 1 x 00 + u 3 2 u 2 + u t 00 + 2 u 3 + 3 u 2 x 11 + u 3 u 2 t 11
The eigencoefficients of the Hermite surface model can be obtained by solving Equation (10).
C 00 = x 00 C 10 = t 00 C 01 = t 00 t 00 C 20 = 3 x 00 2 t 00 + 3 x 10 t 10 C 11 = a C 02 = 2 t 00 + 3 x 11 t 11 + 2 t 00 3 x 10 + t 10 a C 21 = t 10 t 00 + t 00 a C 12 = 2 t 00 + t 11 2 t 10 2 t 00 t 10 t 11 + a C 30 = 2 x 00 + t 00 2 x 10 + t 10 C 03 = 2 x 10 + t 10 2 x 11 + t 11
Then, Equation (6) can be written as Equation (12).
S u , v = S u , v + f a ( u , v ) a
S u , v = C 00 + C 10 u + C 01 v + C 20 u 2 + C 02 v 2 + C 21 u 2 v + C 12 u v 2 + C 30 u 3 + C 03 v 3
C 21 = t 10 t 00 + t 00 C 02 = 2 t 00 + 3 x 11 t 11 + 2 t 00 3 x 10 + t 10 C 12 = 2 t 00 + t 11 2 t 10 2 t 00 t 10 t 11
where  f a u , v = v u v 1 u a = [ a x   a y   a z ] T  is the set shape vector, which aims to improve the controllability of the surface model, and thus achieve the adjustment of the accuracy of fitting the local details of the CAD model. Figure 8 shows the change in the shape of the surface triangle when  a  is taken to different values. The focus of this paper is to construct a Hermite surface triangle for 3D printing with high-precision model fitting. A discussion of  a  will not be developed in this paper, and the specific details will be reflected in another paper. In order to verify the validity of the constructed surface model fit, we set  a = 0 0 0 T  in the subsequent examples.

4. Error Calculation and Evaluation Method

In order to verify the effectiveness of the proposed method, the error calculation and comprehensive evaluation method between the fitted model and the CAD model are presented in this section. The fitting error is essentially the offset that exists between the fitted model and the original model surface. It is theoretically more accurate to use the inter-model volume error as the evaluation criterion for the offset of the model. However, since the distance  H ( x , y )  between model surfaces is related to both its location  ( x , y )  and surface data, and the original model shape has uncertainty, this will make the fitting error difficult to be uniformly expressed by mathematical formulas. To this end, the fitting error is calculated in this paper by means of model sampling. The main idea is to transform the problem of integration of the volumes between the two models into a problem of summing the height differences at the sampling points.
In order to sample the data points of the original model reasonably and comprehensively, a method of calculating the sampling mapping points is proposed. The sampled data points are obtained by meshing the CAD model using Hypermesh software, as is shown Figure 9.
Figure 10 shows the schematic diagram of the model fitting error.  P O x O , y O , z O  is any sampling point in the CAD model, and the fitting error at that point is the height difference between that point and the corresponding mapping point of the fitted model. The mapping point is the intersection point between a vertical line  L O  made along the X/Y/Z direction past the  P O x O , y O , z O  point and the fitted model, as shown in Figure 10 P H x O , y O , z H  and  P S x O , y O , z S  are the mapping points of  P O x O , y O , z O  on the Hermite surface model  M H  and STL model  M S , respectively.
The coordinates of the mapped point can be calculated from the information of the triangular surface slice where the vertical line intersects the fitted model. As shown in Figure 11 P O  is the projection of the sampled points.  P O P i P O P j , and  P O P k  are the vectors constructed with the  Δ P i P j P k  vertices in a counterclockwise direction starting from  P O , respectively.  P O P i P O P j , and  P O P k  can be regarded as vectors rotating counterclockwise with  P O  as the center. When  P O  lies within  Δ P i P j P k P O P i × P O P j P O P j × P O P k , and  P O P k × P O P i  have the same sign, indicating that the vertical line  L O  intersects the triangle  Δ P i P j P k . Conversely, when  P O  is outside  Δ P i P j P k , the vertical line  L O  does not intersect with triangle  Δ P i P j P k .
Taking a vertical line along the Z-direction as an example, when the triangle in the Hermite model intersecting the vertical line is determined, the parameter value  ( u H , v H )  of the sampled mapping point on the Hermite surface triangle can be found by Equation (16). The vertical coordinates of the sampling mapping points (e.g., Equation (16)) can be obtained by substituting  ( u H , v H )  into Equation (14).
x O = C 00 x + C 10 x u H + C 01 x v H + C 20 x u H 2 + C 11 x u H v H + C 02 x v H 2 + C 21 x u H 2 v H + C 12 x u H v H 2 + C 30 x u H 3 + C 03 x v H 3 y O = C 00 y + C 10 y u H + C 01 y v H + C 20 y u H 2 + C 11 y u H v H + C 02 y v H 2 + C 21 y u H 2 v H + C 12 y u H v H 2 + C 30 y u H 3 + C 03 y v H 3
z H = C 00 z + C 10 z u H + C 01 z v H + C 20 z u H 2 + C 11 z u H v H + C 02 z v H 2 + C 21 z u H 2 v H + C 12 z u H v H 2 + C 30 z u H 3 + C 03 z v H 3
It is worth noting that the procedure calculates all the sampled mapping points on the surface triangles intersecting the vertical line and takes the point closest to the sampled point as the error calculation point.
In the Z-direction of the STL fitted model, the triangles with vertices  P i x i , y i , z i P j x j , y j , z j  and  P k x k , y k , z k , where the sampled mapping point  P S x O , y O , z S  is located, should satisfy the following conditions.
x x i y y i z z i x j x i y j y i z j z i x k x i y k y i z k z i = 0
The vertical coordinate of this sample mapping point can be described as:
z S = a ( x O x i ) b ( y O y i ) c + z i
where
a = ( y j y i ) ( z k z i ) ( y k y i ) ( z j z i ) b = ( z j z i ) ( x k x i ) ( z k z i ) ( x j x i ) c = ( x j x i ) ( y k y i ) ( x k x i ) ( y j y i )
After obtaining the sampling mapping points on the fitted model, the error between the fitted model and the original model can be obtained by calculating the distance between the sampling points and the mapping points, and the unit of distance is by millimeter. In order to make a comprehensive evaluation of the error of the fitted model, the evaluation method of calculating the fitting error in terms of mean deviation and variance is proposed. In the Z-direction, the mean deviation (mm) and variance (mm2) of the sampled points can be described as:
e Z ¯ = H 1 Z + H 2 Z + + H n Z n
s z 2 = H 1 Z e z ¯ 2 + H 2 Z e z ¯ 2 + + H n Z e z ¯ 2 n 1
where  H i j Z ( x , y ) = M i ( x , y ) M j ( x , y ) M i  and  M j  are the original model and the fitted model, respectively.  H  is the distance difference between the models at the point  ( x , y ) . n is the number of sampling point. Similarly, the fitting errors in the X and Y directions can be solved by the above method.

5. Numerical Cases

Case 1.
In this section, we take the Stanford classical rabbit model with high complexity morphology as an example and compare the fitting error of its Hermite surface model and the 3D printing generic STL model. As shown in Figure 12, the solid rabbit model in step format was imported into Hypermesh software, and the sampled data points with 702 located on the model surface were obtained by meshing.
The rabbit model was fitted using the Hermite surface triangles constructed in this paper and the planar triangles of the STL, respectively. The number of triangular surface slices is controlled by changing the approximation tolerance and mesh density of the fit. And finally, five groups of Hermite and STL fitted models were obtained, corresponding to the number of triangular facets of 16,862, 18,519, 22,820, 25,323 and 27,239, respectively. Table 1 shows the sampling mean deviation and variance of the original model and the fitted model in the X, Y, and Z directions.
Theoretically, as the number of fitted model facets increases, the accuracy of the fit should also improve, i.e., the mean deviation will be reduced. However, as shown in Table 1, there is no such rule between the obtained data. The main reason for the existence of this phenomenon is that when the fitted model is not finely drawn to the local features of the original model, the triangle that should be used to calculate the fitting error at its closest distance does not intersect with the vertical line after some of the sampling points make a vertical line along the error calculation direction. This will cause an offset in the mapping point selection, resulting in a large sampling error.
Table 2 and Table 3 show the distribution of the sampling mean deviation of the data in groups 1 and 5, respectively. As shown in Table 2, the maximum fitting error of the Hermite surface model in the Z direction is around 50, and then the overall fitting error is mostly distributed below 5. In contrast, the maximum fitting error of the STL model reaches more than 800, and there is still a large distribution around 50. In the other two directions, the maximum fitting errors of the two are similar, but the Hermite surface model has a smaller value of sampling error and a relatively concentrated distribution. In contrast, the fitting errors of the STL model are relatively discrete in distribution and have larger values. Similarly, as shown in Table 3, the maximum fitting error is similar in the Y direction, but in the Z and X directions, the maximum fitting error of the STL model is much larger than that of the Hermite surface model, and the overall error distribution is more discrete in all three directions.
As shown in Table 1, Table 2 and Table 3, the overall fitting accuracy of the Hermite surface model is higher compared to the STL model, but the obtained fitting error fluctuates more due to the existence of mapping point bias, which does not truly reflect the deviation between the fitted model and the original model. In order to evaluate the fitting ability of the two models more accurately and objectively, the distance-weighted nearest neighbor algorithm [28] is used to process the data in Table 1. This method achieves the screening and removal of data with more discrete distribution by calculating the distance between objects and assigning larger weights to closer distances. Table 4 and Figure 13 show the fitting errors and the variation in mean deviation of mean deviation after removing the “noise points”, respectively.
As can be seen from Table 4 and Figure 13, the mean deviation between the Hermite and STL models in the Z, X, and Y directions gradually decrease as the number of model facets increases, and gradually stabilize at the 4th and 5th groups. It shows that the accuracy of the fit of the 2 to the model is gradually improving with the increase in the number of face slices. The fitting error of the STL model fluctuates in the Y-direction, e.g., the error becomes larger in group 3. The main reason for this phenomenon is that STL uses planar triangles for fitting, which is more likely to produce an offset in the mapping points. At the same time, the overall fitting accuracy of the Hermite surface model is much better than that of the STL planar model, which can preserve the original model characteristics and accuracy as much as possible with a smaller number of face slices. This not only can effectively solve the problem of excessive data volume or data redundancy caused by the continuous subdivision of the face slices in the STL model when improving the fitting accuracy, but also can further improve the processing efficiency and manufacturing accuracy of complex models in the 3D printing process.
Case 2.
The turbine model is used as another example to verify the effectiveness of the proposed method. A Hermite surface model and a 3D printing generic STL model are used to fit it, and the fitting error is analyzed. The solid model of the turbine and the 950 sampled data points extracted based on the grid division are shown in Figure 14.
The Hermite and STL fitting errors were compared by five groups of models with face piece numbers of 18,272, 20,540, 22,752, 24,336, and 28,592, respectively. Table 5 shows the mean deviation and variance of the fitted model in three directions after removing the “noise”. The variation of the mean deviation is shown in Figure 15.
As is shown in Table 4 and Figure 13, the fitting error is gradually decreasing as the number of model facets increases in the Z and Y directions. The model fit error was minimized in group 5. The mean deviation was about 0.2 and 0.35 for Hermite and STL, respectively. In the X-direction, the fitting error of Hermite ranged from 0.2 to 0.1, and gradually tended to 0.1 as the number of model facets increased. The fitting error of the STL model showed a gradual decrease with the increase in the number of model facets, except for a slight fluctuation due to the mapping point offset on group 3. However, its lowest error among the 5 groups is still around 0.25. The overall fitting accuracy of the Hermite model for this case is still better than that of the STL model, which verifies the effectiveness of the proposed method.

6. Conclusions

In this paper, we propose a Hermite surface triangle model construction method considering the high-precision fitting of 3D printing models. The mapping relationship between different surface triangles and characteristic triangles is established by radial variation. Using the vertex and tangent vector information, a cubic Hermite curve model with adjustable accuracy of the model local fitting is constructed based on the general parametric cubic surface model. The model effectively reduces the parameter variables, simplifies the complexity of the calculation, and achieves the specification of the solution problem. A model fitting error calculation and evaluation method based on sampling mapping points is proposed. It transforms the continuous integration into a discrete summation problem, effectively solving the problem that is difficult to express uniformly in mathematical formulas due to the uncertainty of the original model. The effectiveness of the proposed method in improving the model fitting accuracy was verified by using rabbit and turbine models with five different sets of face slices. In the future research work, we will carry out a systematic study of a. Considering the different characteristics of the model, we will study an adaptive control method of a that can satisfy high-precision fitting. In addition, based on the constructed Hermite surface model, we will study the adaptive layering technique of the surface model and surface path planning method considering the layered slicing and path planning errors. This will provide vital support to further enhance efficient and high-precision manufacturing of 3D printing.

Author Contributions

Conceptualization, R.L.; formal analysis, R.L.; investigation, J.F.; methodology, J.F.; writing—original draft, R.L. and J.F.; writing—review and editing, S.J., Y.C. and R.L. All authors have read and agreed to the published version of the manuscript.

Funding

The work described in this paper was jointly funded by the National Key Research and Development Program of China under Grant No. 2017YFB1102804.

Data Availability Statement

Not applicable.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Fu, J.; Li, H.; Song, X.; Fu, M. Multi-scale defects in powder-based additively manufactured metals and alloys. J. Mater. Sci. Technol. 2022, 27, 165–199. [Google Scholar] [CrossRef]
  2. Gardan, J. Additive manufacturing technologies: State of the art and trends. Int. J. Prof. Bus. Rev. 2015, 54, 3118–3132. [Google Scholar]
  3. Johnson, N.; Vulimiri, P.; To, A.; Zhang, X.; Brice, C.; Kappes, B.; Stebner, A. Invited review: Machine learning for materials developments in metals additive manufacturing. Addit. Manuf. 2020, 36, 101641. [Google Scholar] [CrossRef]
  4. Singamneni, S.; Roychoudhury, A.; Diegel, O.; Huang, B. Modeling and evaluation of curved layer fused deposition. J. Mater. Process. Technol. 2012, 212, 27–35. [Google Scholar] [CrossRef]
  5. Blakey-Milner, B.; Gradl, P.; Snedden, G.; Brooks, M.; Pitot, J.; Lopez, E.; Leary, M.; Berto, F.; Plessis, A. Metal additive manufacturing in aerospace: A review. Mater. Design 2021, 12, 110008. [Google Scholar] [CrossRef]
  6. Gradl, P.; Teasley, T.; Protz, C.; Katsarelis, C. Process Development and Hot-fire Testing of Additively Manufactured NASA HR-1 for Liquid Rocket Engine Applications. In Proceedings of the AIAA Propulsion and Energy 2021 Forum, Reston, VA, USA, 9–11 August 2021. [Google Scholar]
  7. Gardner, L.; Kyvelou, P.; Herbert, G.; Buchanan, C. Testing and initial verification of the world’s first metal 3D printed bridge. J. Constr. Steel Res. 2020, 172, 106233. [Google Scholar] [CrossRef]
  8. Armstrong, M.; Mehrabi, H.; Naveed, N. An overview of modern metal additive manufacturing technology. J. Manuf. Process. 2022, 84, 1001–1029. [Google Scholar] [CrossRef]
  9. Jafari, D.; Vaneker, T.; Gibson, I. Wire and arc additive manufacturing: Opportunities and challenges to control the quality and accuracy of manufactured parts. Mater. Des. 2021, 202, 109471. [Google Scholar] [CrossRef]
  10. Gao, W.; Zhang, Y.; Ramanujan, D.; Ramani, K.; Chen, Y.; Williams, C.; Wang, C.; Shin, Y.; Zhang, S.; Zavattieri, D. The status, challenges, and future of additive manufacturing in engineering. Comput. Aided Des. 2015, 69, 65–89. [Google Scholar] [CrossRef]
  11. Zhao, D.; Guo, W. Shape and Performance Controlled Advanced Design for Additive Manufacturing: A Review of Slicing and Path Planning. J. Manuf. Sci. E 2020, 142, 010801. [Google Scholar] [CrossRef]
  12. Kim, Y.; Nguyen, P.; Kim, H.; Choi, Y. Multi-morphology cellular structure design with smooth transition of geometry and homogenized mechanical properties between adjacent cells. Mater. Des. 2022, 218, 110727. [Google Scholar] [CrossRef]
  13. Zhu, Z.; Anwer, N.; Mathieu, L. Shape Transformation Perspective for Geometric Deviation Modeling in Additive Manufacturing. Procedia CIRP 2018, 75, 75–80. [Google Scholar] [CrossRef]
  14. Navangul, G.; Paul, R.; Anand, S. Error minimization in layered manufacturing parts by stereolithography file modification using a vertex translation algorithm. J. Manuf. Sci. Eng. 2013, 135, 031006. [Google Scholar] [CrossRef]
  15. Zha, W.; Anand, S. Geometric approaches to input file modification for part quality improvement in additive manufacturing. J. Manuf. Process. 2015, 20, 465–477. [Google Scholar] [CrossRef]
  16. Vlachos, A.; Peters, J.; Boyd, C.; Mitchell, J. Curved PN triangles. Symp. Inter. Graph. 2001, 3, 159–166. [Google Scholar]
  17. Hamann, B.; Trotts, I.; Farin, G. On approximating contours of the piecewise trilinear interpolant using triangular rational quadratic Bezier patches. Vis. Comput. Graph. IEEE Trans. 1997, 3, 215–227. [Google Scholar] [CrossRef] [Green Version]
  18. Márta, S.; Ildikó, S. C1-continuous Coons-type blending of triangular patches. KoG 2005, 9, 29–34. [Google Scholar]
  19. Barnhill, R.; Birkhoff, G.; Gordon, W. Smooth interpolation in triangles. J. Approx. Theory 1973, 8, 114–128. [Google Scholar] [CrossRef] [Green Version]
  20. Hagen, H. Geometric surface patches without twist constraints. Comput. Aided Geom. Des. 1986, 3, 179–184. [Google Scholar] [CrossRef]
  21. ISO/ASTM52915–2020; Standard Specification for Additive Manufacturing File Format (AMF) Version 1.2. ASTM International: West Conshohocken, PA, USA, 2020.
  22. Technical Committee AMT/8. IBS EN ISO/ASTM 52900: Additive manufacturing–general principles–terminology. Int. Stand. 2017, 8, 1–30. [Google Scholar]
  23. Li, J.; Liu, C. Cubic Trigonometric Hermite Interpolation Curve: Construction, Properties, and Shape Optimization. J. Funct. Spaces 2022, 2022, 7525056 . [Google Scholar] [CrossRef]
  24. DeBoor, C. High accuracy Hermite interpolation. Comput. Aided Geom. Des. 1987, 4, 269–278. [Google Scholar] [CrossRef] [Green Version]
  25. Hollig, K.; Koch, J. Geometric Hermite interpolation. Comput. Aided Geom. Des. 1995, 13, 67–580. [Google Scholar] [CrossRef]
  26. Imre, J. Cubic parametric curve of given tangent and curvature. Comput. Aided Geom. Des. 1998, 30, 1–9. [Google Scholar]
  27. Stearns, C.; Kannappan, K. Method for 2–D Affine Transformation of Images: US5475803 A; LSI Logic Corporation: Milpitas, CA, USA, 1995. [Google Scholar]
  28. Parvinnia, E.; Sabeti, M.; Jahromi, M.; Boostani, R. Classification of EEG Signals using adaptive weighted distance nearest neighbor algorithm. J. King Saud. Univ. 2014, 26, 1–6. [Google Scholar] [CrossRef] [Green Version]
Figure 1. Definition of AMF surface triangles: (a) tangent vector of the vertex; (b) normal vectors of the vertices.
Figure 1. Definition of AMF surface triangles: (a) tangent vector of the vertex; (b) normal vectors of the vertices.
Axioms 12 00370 g001
Figure 2. Hermite curve.
Figure 2. Hermite curve.
Axioms 12 00370 g002
Figure 3. Curved triangle parameters: (a) parameters of each side; (b) curved triangle; (c) mapping of parameter fields.
Figure 3. Curved triangle parameters: (a) parameters of each side; (b) curved triangle; (c) mapping of parameter fields.
Axioms 12 00370 g003
Figure 4. Feature triangle.
Figure 4. Feature triangle.
Axioms 12 00370 g004
Figure 5. Vertex one-to-one correspondence.
Figure 5. Vertex one-to-one correspondence.
Axioms 12 00370 g005
Figure 6. Mapping relationship between feature triangle and surface triangle.
Figure 6. Mapping relationship between feature triangle and surface triangle.
Axioms 12 00370 g006
Figure 7. Coordinates and tangent vectors of the vertex of a curved triangle.
Figure 7. Coordinates and tangent vectors of the vertex of a curved triangle.
Axioms 12 00370 g007
Figure 8. Hermite surfaces for different values of a.
Figure 8. Hermite surfaces for different values of a.
Axioms 12 00370 g008
Figure 9. Sampling point acquisition for basketball model: (a) CAD model; (b) grid division; (c) sampling data points.
Figure 9. Sampling point acquisition for basketball model: (a) CAD model; (b) grid division; (c) sampling data points.
Axioms 12 00370 g009
Figure 10. Local schematic of model fitting error.
Figure 10. Local schematic of model fitting error.
Axioms 12 00370 g010
Figure 11. The vertical line intersects the curved triangle: (a) the projection point (Z-direction); (b) location of projection point.
Figure 11. The vertical line intersects the curved triangle: (a) the projection point (Z-direction); (b) location of projection point.
Axioms 12 00370 g011
Figure 12. Sampling point acquisition for rabbit model: (a) solid model; (b) grid division; (c) sampling data points.
Figure 12. Sampling point acquisition for rabbit model: (a) solid model; (b) grid division; (c) sampling data points.
Axioms 12 00370 g012
Figure 13. Variation in mean deviation: (a) Z-direction; (b) X-direction; (c) Y-direction.
Figure 13. Variation in mean deviation: (a) Z-direction; (b) X-direction; (c) Y-direction.
Axioms 12 00370 g013
Figure 14. Sampling point acquisition for turbine model: (a) CAD model; (b) grid division; (c) sampling data points.
Figure 14. Sampling point acquisition for turbine model: (a) CAD model; (b) grid division; (c) sampling data points.
Axioms 12 00370 g014
Figure 15. Variation in mean deviation: (a) Z-direction; (b) X-direction; (c) Y-direction.
Figure 15. Variation in mean deviation: (a) Z-direction; (b) X-direction; (c) Y-direction.
Axioms 12 00370 g015
Table 1. Results of model fitting errors.
Table 1. Results of model fitting errors.
NumberModelsNumber of FacetsZ-DirectionY-DirectionX-Direction
Mean Deviation (mm) Variance (mm2)Mean Deviation (mm)Variance (mm2)Mean Deviation (mm)Variance (mm2)
1Hermite16,8620.294.150.8916.200.6425.06
STL13.1755613.4759.782.31102.10
2Hermite18,5190.273.921.77160.760.7938.81
STL22.19215,4503.1253.733.50174.12
3Hermite22,8200.5016.880.9223.840.439.66
STL2.0657.233.1657.512.10112.78
4Hermite25,3230.263.700.609.130.4710.15
STL2.59306.762.6440.471.8167.52
5Hermite27,2390.253.670.8421.530.388.80
STL2.76259.872.6945.572.84461.31
Table 2. Mean deviation in the three directions in group 1.
Table 2. Mean deviation in the three directions in group 1.
Hermite ModelSTL Model
Z-directionAxioms 12 00370 i001Axioms 12 00370 i002
X-directionAxioms 12 00370 i003Axioms 12 00370 i004
Y-directionAxioms 12 00370 i005Axioms 12 00370 i006
Table 3. Mean deviation in the three directions in group 5.
Table 3. Mean deviation in the three directions in group 5.
Hermite ModelSTL Model
Z-directionAxioms 12 00370 i007Axioms 12 00370 i008
X-directionAxioms 12 00370 i009Axioms 12 00370 i010
Y-directionAxioms 12 00370 i011Axioms 12 00370 i012
Table 4. Fitting error results after removing the “noise” from the rabbit model.
Table 4. Fitting error results after removing the “noise” from the rabbit model.
NumberModelsNumber of FacetsZ-DirectionY-DirectionX-Direction
Mean Deviation (mm) Variance (mm2)Mean Deviation (mm)Variance (mm2)Mean Deviation (mm)Variance (mm2)
1Hermite16,8620.180.230.321.430.150.91
STL0.402.331.393.210.281.80
2Hermite18,5190.160.220.331.320.130.74
STL0.382.151.202.860.271.87
3Hermite22,8200.100.490.230.710.020.04
STL0.332.011.444.040.211.32
4Hermite25,3230.090.310.240.650.020.17
STL0.291.741.323.810.171.09
5Hermite27,2390.080.290.281.070.030.05
STL0.291.731.203.220.160.84
Table 5. Fitting error results after removing the “noise” from the turbine model.
Table 5. Fitting error results after removing the “noise” from the turbine model.
NumberModelsNumber of FacetsZ-DirectionX-DirectionY-Direction
Mean Deviation (mm) Variance (mm2)Mean Deviation (mm)Variance (mm2)Mean Deviation (mm)Variance (mm2)
1Hermit18,2720.250.080.180.070.240.07
STL0.350.130.300.190.330.16
2Hermit20,5400.260.080.120.020.250.07
STL0.380.130.240.120.360.13
3Hermit22,7520.230.050.130.060.240.07
STL0.370.140.260.180.330.16
4Hermit24,3360.200.070.120.080.230.08
STL0.350.120.250.120.330.19
5Hermit28,5920.210.070.110.100.200.04
STL0.340.120.250.120.320.08
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Lian, R.; Jing, S.; Chen, Y.; Fan, J. A Hermite Surface Triangle Modeling Method Considering High-Precision Fitting of 3D Printing Models. Axioms 2023, 12, 370. https://doi.org/10.3390/axioms12040370

AMA Style

Lian R, Jing S, Chen Y, Fan J. A Hermite Surface Triangle Modeling Method Considering High-Precision Fitting of 3D Printing Models. Axioms. 2023; 12(4):370. https://doi.org/10.3390/axioms12040370

Chicago/Turabian Style

Lian, Ruichao, Shikai Jing, Yang Chen, and Jiangxin Fan. 2023. "A Hermite Surface Triangle Modeling Method Considering High-Precision Fitting of 3D Printing Models" Axioms 12, no. 4: 370. https://doi.org/10.3390/axioms12040370

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