Abstract
In order to improve the flattening quality of sheet metal with free-form surface, a flattening system was developed. The system framework was proposed and the key technologies such as mesh quality measuring criterion, center triangle indexing algorithm, coordinate transforming principle, and initial flattening method were elaborated. Moreover, a planar spring–mass model was presented to optimize the initial flattening result, and the flowchart of the proposed flattening method was designed. Finally, three simulation examples were carried out and the comparison results indicated that the proposed system was proved feasible and efficient.
Keywords
Introduction
Nowadays, the sheet metal with free-form surface is applied widely in industries, such as the manufacturing process of airplane, ship, and automobile. 1 With the rapid development of computer-aided design (CAD) technology, a variety of beautiful appearance sheet metals with the free-form surface can be designed easily. However, before planning manufacturing processes, it is very difficult and tedious to get the shape and geometry size of the blank. Thus, a high demand for flattening technology of sheet metal with free-form surface is put forward.
The flattening technology of sheet metal with free-form surface provides the data information of the optimum blank that can be used to carry out blank layout and incision. Meanwhile, a reasonable blank shape not only saves raw material, reduces subsequent panel trimming process, and cuts down production cost but also provides a valuable tool to improve the forming conditions and quality. In addition, the flattening process is the inverse process for sheet metal forming. By analyzing flattening process, the problems in the initial design of sheet metal can be discovered, such as stress concentration, cracks, and wrinkles, and the designer can revise the initial CAD model of sheet metal. 2 Therefore, it is very important to research the flattening technology for free-form surface.
The process of flattening free-form surface equals to the mapping process of surface from three-dimensional (3D) space to two-dimensional plane. In the strict sense, the mapping mainly depends on isometric mapping (ISOMAP) which keeps the geodesic distance between two arbitrary points unchanged pre and post mapping. 3 The traditional flattening methods for sheet metal are mainly made up of the graphic method and the analytic flattening which are only applied to a kind of sheet metal with a regular shape, but it is helpless for free-form surface.
Bearing the above observation in mind, we present a flattening system for sheet metal with free-form surface and the rest of this article is organized as follows. In section “Literature review,” some related works are outlined based on the literature. The system framework and the main functional modules are presented in section “Framework of the proposed system.” The key technologies of the proposed system are put forward and discussed in section “Key technologies.” Some simulation examples are provided to test and verify the proposed system in section “Simulation examples and discussion.” The conclusions and future work are summarized in section “Conclusion and future work.” With the proposed method of this article, a flattening system for sheet metal with free-form surface was designed and implemented to improve the flattening quality of sheet metal; this system can widely be used to design and manufacture shape designing of car and electric appliance and reverse engineering and so on.
Literature review
Recent publications relevant to this article are mainly concerned with flattening methods. In this section, we try to summarize the relevant literature.
Flattening method
For flattening method, lots of research has been done since the late 1980s and most of them can be classified into three categories: geometry flattening method, finite element method, and flattening method based on energy model.
Manning 4 developed a system for surface development based on an isometric tree and the system is applied in the garment industry. Hinds et al. 5 developed doubly curved surfaces by first approximating them by quadrilateral facets on the basis of Gaussian curvature and then flattening these facets allowing some gaps in the developed result. Similar to Hinds et al., DR Chen et al. 6 proposed a concept of quasi-rulings to adaptively segment the 3D surface. Azariadis and colleagues7–9 extended Hinds’ research to reduce the gaps by minimizing the Euclidean distances of pairs of the corresponding points between two successive strips. Kim and Shin 10 presented a surface flattening method using two guide surfaces. Sheffer and De Sturler 11 proposed a method to compute planar triangulations of triangulated surfaces for surface parameterization. The method solved a nonlinear system of equations to obtain the flattening result.
Shimada and Tada 12 proposed a finite element method using the initial guess for stresses on the surface. Chung and Richmond13–15 proposed the finite element inverse method on the basis of ideal forming theory to obtain the sheet metal blank. Different with any other methods, these methods did not directly map the triangular mesh surface in the space to the plane, but predicted a planar triangle mesh which had the same geometrical topology structure with the surface in the space. Similar studies can also be found in Cai et al. 16 and Shimada and Tada. 17
McCartney et al. 18 proposed an algorithm to flatten 3D surface. The algorithm incorporated energy model in terms of the strain energy required to deform the edges of the triangular mesh. Wang and Wang 19 proposed a general surface development algorithm based on a spring–mass model to release the energy stored in the initial flattening result. The area error and length error are adopted in this article to evaluate the flattening result. J Li et al. 20 made a little improvement to the traditional spring–mass model by adding crossed springs which could prevent the flattened mesh from stretching too much. Q Liu et al. 21 proposed a simplified spring–mass model to release the energy. They only focused on the resultant force direction and the maximum edge length distortion. Similarly, Q Zhang et al. 22 established a hinge joint system of bars to optimize the initial flattening result. Other research achievements using the energy-based method can also be found in Zhong and Xu, 23 Chung et al., 24 and Zhang et al. 25
Discussion
Although many flattening methods for free-form surface have been developed in the above literature, they have some common disadvantages summarized as follows. First, most of the researchers have not considered the mesh quality which will affect the quality of the flattening surface. Second, the influence of base triangle has been researched rarely. Finally, the initial flattening result obtained by the existing methods is rough which has many cracks and overlaps.
Based on our past research on flattening free-form surface, this article tries to tackle the above problems. Main improvements of this article can be summarized as follows: (1) the mesh quality measuring criterion is proposed to ensure the quality of surface mesh, (2) the center triangle indexing algorithm is adopted to get an ideal base triangle, and (3) the concept of flattening unit and initial flattening method is proposed to avoid cracks and overlaps.
Framework of the proposed system
The flattening system for sheet metal with free-form surface developed in this article mainly consists of three modules: pre-processing module, flattening module, and post-processing module. The relationship between these three modules is illustrated in Figure 1. The functionalities of the modules are elaborated as follows:
Pre-processing module. It mainly includes extracting the free-form surface, meshing algorithm, and mesh quality measuring criterion. The import format of 3D model can be IGES, STP, and SAT file formats. The 3D model is transformed into a free-form surface first and then the free-form surface would be divided into a triangular mesh surface with perfect mesh quality.
Flattening module. It mainly includes center triangle indexing algorithm, coordinate transforming principle, initial flattening method, and optimizing model. The circular chain of triangles linking with the flattened triangles is defined as a flattening unit in this article. After the triangular mesh surface is processed in this module, an ideal flatten result can be obtained.
Post-processing module. It mainly includes error analyzing and profile curve fitting. The output format of the flattening result is DXF to facilitate data exchange with other CAD/computer-aided manufacturing (CAM) software.

Framework of the proposed system.
Key technologies
Mesh quality measuring criterion
The surface mesh generating algorithm based on the advancing front method is adopted in this article. 26 The algorithm has a strong adaptability and the mesh density can be easily controlled according to the Gaussian curvature. Besides, the algorithms have the advantages of high automaticity and fast rate of computation; its computing efficiency is O(N log N), where N is the total number of triangular meshes.
If the mesh quality cannot meet the algorithm requirements in the flattening system, the convergence of the algorithm cannot be satisfied easily, and then there would be many overlaps and cracks in the flattening result. Thus, it is very necessary to ensure the mesh quality in the flattening algorithm. Therefore, a mesh quality measuring criterion is proposed in this section.
The mesh quality of individual triangle can be denoted as δ
where AB, BC, and CA are the edges of triangle. Using this formula, the mesh quality of regular triangle equal to 1 and the mesh quality of isosceles right triangle equal to
The mesh quality of the whole triangular mesh surface can be denoted as Δ
Obviously,
Center triangle indexing algorithm
During the flattening process, the first triangle, named as base triangle, can be flattened to a specific plane with no deformation. It is a very important to select an ideal base triangle for the flattening result. 27 The center triangle T0 of the triangular mesh surface is treated as base triangle in this article. The arithmetic flow for indexing the center triangle can be presented as follows.
Define variable index-number, int*IndexNO =NULL; IndexNO = new int:
Step 1. Traverse all nodes on the triangular mesh surface, assign an IndexNO for every node, and initialize them to 0.
Step 2. Traverse all edges on the triangular mesh surface; if it is empty on the left or right side of the triangle edges, the end points of the edges are named as boundary nodes. The IndexNO of these nodes is marked as 1.
Step 3. Index the nodes directly connecting with the marked nodes. The IndexNO of these nodes is marked as 2.
Step 4. Repeatedly execute Step 3 until the IndexNO of all nodes is updated.
Step 5. Calculate the summation of IndexNO for each triangle. The triangle with the largest total index number is regarded as the center triangle T0.
As shown in Figure 2, the red triangle is the needed center triangle T0.

The schematic diagram of center triangle indexing.
Coordinate transforming principle
In order to describe the coordinate transforming principle, a figure is presented as shown in Figure 3.

The schematic diagram of coordinate transforming: (a) an arbitrary triangle, (b) the triangle after translating, (c)
As shown in Figure 3(a), there is an arbitrary triangle ΔP1P2P3 in space rectangular coordinate system 0-xyz and its vertex coordinates are P1(x1, y1, z1), P2(x2, y2, z2), and P3(x3, y3, z3), respectively.
First, an orthogonal matrix can be preset, denoted as
In order to facilitate the subsequent calculations, the local coordinate system should be rewritten in homogeneous coordinate system form by usage, denoted as
By rotating a certain angle, the two coordinate systems lap over each other. The z′-axis in Figure 3(b) and
The combinatorial transformation matrix can be denoted as
Comparing Figure 3(b) with Figure 3(c), the direction cosines of z′-axis (
Analyzing the Figure 3(c), the following formulas can be calculated
Substituting cos ω, sin ω, cos θ, and sin θ into equation (7), the final form of combinatorial transformation matrix
By utilizing the combinatorial transformation matrix
Initial flattening method
In this article, the number of triangle limiting the node transforming would be defined as flattening constraint degree of the node to reflect the flattening characteristic during the flattening process. According to this definition, the flattening constraint degree of the node can be divided into three situations.
Situation 1
The triangles T and T1 represent the arbitrary flattened and unflattened triangles in the space shown in Figure 4(a). The triangles

Situation 1 of flattening constraint degree: (a) an arbitrary triangle and (b) the triangle after flattening.
Situation 2
As shown in Figure 5(a), the flattening constraint degree of node P3 is equal to 2. The node P3 can be transformed into the plane, respectively, in the triangles T1 and T2 under the Situation 1. The two nodes

Situation 2 of flattening constraint degree: (a) an arbitrary triangle and (b) the triangle after flattening.
Situation 3
Extending to a more general situation shown in Figure 6(a), the flattening constraint degree of node P3 is equal to 3. There are three fake-nodes in Figure 6(b), denoted as

Situation 3 of flattening constraint degree: (a) an arbitrary triangle, (b) the triangle after flattening, and (c) the drawing of partial enlargement.
A method to calculate the geometric center p(x, y) of nonself-intersectant closed polygon is presented. Hypothetically, the nonself-intersectant closed polygon has n
The geometric center p(x, y) of nonself-intersectant closed polygon can be calculated as follows
Although the initial flattening result is quite rough, the triangular mesh topology has the same geometrical topology structure in the space domain and plane domain.
Optimizing model
In order to optimize the initial flattening result, a planar spring–mass model is presented in this section.
The planar spring–mass model can be described as follows: the nodes and edges of the initial flattening result can be treated as particles and springs, respectively. Then the physical quantities of the model correspond to the geometric quantities of graphics, such as the quality of particles closely correlates with the area of triangle, and the elastic force is associated with edge difference of triangle flattening pre and post. The difference is considered to be a tension or compression for springs in the model. 29 As shown in Figure 7, the particles pi and pj are connected with springs. If the edge pipj on the planar triangular mesh is shorter than the corresponding edge on the spatial triangular mesh, it can be assumed that there exists thrust force between them such as p0 and p1; otherwise, there exists tension force such as p0 and p5.

Planar spring–mass model.
Assume that the surface mass is concentrated on each particle. Thus, the mass mi of particle pi can be calculated as follows
where ρ is the area density of the surface, Sj is the area of jth triangle containing the particle pi, and n is the total number of triangles containing the particle pi.
The resultant force
where k is the elastic coefficient,
The simplified Lagrange equation can be adopted to describe the motion process of particles in the model 30
where q is the position of particle,
The Euler method can be applied to solve equation (10). 31 When time increment Δt is short enough, the acceleration of the particle is regarded as a constant and then the balance of the whole model will be made up of the balance for each single particle. For arbitrary particle pi, equation (10) can be rewritten as follows
where
However, by studying equation (11), it can be found that the velocity of particle pi at time t + Δt is seriously influenced by the velocity at time t. With the accumulation of velocity and the inertia of the particle motion, the particle would oscillate at the equilibrium position, which would bring about divergence for iterative process.
In order to tackle those limitations, the inertia of the particle can be ignored; 32 in other words, the particle moves at a uniform velocity from time t and t + Δt. Therefore, equation (11) can be simplified as follows
In order to measure the error of the flattening result, the classical error measure rules are adopted in this article. 33 The area error ES and length error EL are defined as follows
where Si and Li are the actual edge length and area of one triangle on the spatial mesh surface, respectively;
In order to obtain an effective and meaningful flattening result, the following restricted conditions should be satisfied
where εS and εL are the tolerance of area error and length error, respectively.
Because the shape of the triangle is constantly changing, the mass matrix and the elastic force are also changing constantly. The iterative process has complicated nonlinear features. The calculation steps are shown as follows:
Step 1. Preset the time increment Δt, the tolerance of error εS and εL, and the maximum iterations εi.
Step 2. Calculate the mass mi of each particle and the resultant force
Step 3. Solve the new physical parameters of particles through equation (12).
Step 4. Calculate the area error ES and length error EL through equation (13).
Step 5. If
With the optimizing process completed, the particles and springs achieve a global stability state and the final flattening result of the original surface can be obtained.
Flowchart of the flattening method
According to the above description, the proposed flattening method can be coded easily on the computer, and the flowchart can be summarized as shown in Figure 8.

Flowchart of the flattening method.
Simulation examples and discussion
Based on the above technologies, the flattening system for sheet metal with free-form surface has been developed through integration of Microsoft visual studio 2008 and OpenGL. All the examples are executed on a Core-i5 2.53G PC. The simulation results are shown in Figures 9–11, and the comparison results are listed in Table 1.

A hemisphere flattening example: (a) initial free-form surface, (b) Gaussian curvature nephogram, (c) meshed surface, (d) initial flattening result, and (e) optimizing result.

A rotational part flattening example: (a) initial free-form surface, (b) Gaussian curvature nephogram, (c) meshed surface, (d) initial flattening result, and (e) optimizing result.

A thin sheet flattening example: (a) initial free-form surface, (b) Gaussian curvature nephogram, (c) mesh quality Δ1 = 0.65, (d) optimizing result, (e) mesh quality Δ1 = 0.95, and (f) optimizing result.
Comparison results.
The flattening results of a hemisphere are shown in Figure 9. In fact, the hemisphere is a typical undevelopable surface and its Gaussian curvature is a constant. The simulation results show that the flattening quality can be improved greatly when the planar spring–mass model is applied. After optimizing, the area error ES can be reduced from 1.532% to 0.463% and the length error EL can be reduced from 1.467% to 0.113%. Obviously, the flattening quality of hemisphere is improved greatly.
The flattening results of a rotational part are shown in Figure 10. The rotational part is more complicated than the hemisphere and its Gaussian curvature is not a constant as shown in Figure 10(b). The target surface is first meshed with 834 nodes and 1462 triangles, shown in Figure 10(c). Applying the planar spring–mass model in the example, the area error ES is reduced from 2.874% to 1.365% and the length error EL is reduced from 5.627% to 1.014%.
In order to verify the influence of mesh quality on the fattening result, a thin sheet flattening example is provided and the flattening results of a thin sheet are shown in Figure 11. From the Gaussian curvature nephogram shown in Figure 11(b), the target surface is a local undevelopable surface. The surface is divided into two kinds of meshes in which the quality measuring values of the triangular mesh surface are Δ1 = 0.65 and Δ2 = 0.95. Comparison results indicate that the flattening quality of second kind condition is better than the first.
The interface of the flattening system for sheet metal with free-form surface is shown in Figure 12. The system mainly has three tool bars: tool bar for flattening, tool bar for data exchanging, and tool bar for view transforming module.

The prototype system interface.
Conclusion and future work
A flattening system for sheet metal with free-form surface was designed and implemented to improve the flattening quality of sheet metal. The framework and its key technologies of the proposed system were elaborated. Finally, three examples were provided and the proposed system was proved feasible and efficient.
In future studies, the authors plan to investigate some improvements for the proposed system such as considering the material property of sheet metal and establishing a better optimizing model. In addition, the applications of the proposed system in mechanical engineering are worth further study for the authors.
Footnotes
Academic Editor: Michal Kuciej
Declaration of conflicting interests
The author(s) declared no potential conflicts of interest with respect to the research, authorship, and/or publication of this article.
Funding
The author(s) disclosed receipt of the following financial support for the research, authorship, and/or publication of this article: This work was supported by the National Natural Science Foundation of Jiangsu Province (No. BK20151144), Discipline Frontier Research Project (No. 2015XKQY10), and a project funded by the Priority Academic Program Development of Jiangsu Higher Education Institutions
