1 Introduction

Straight bevel gears (SBGs) are conical in shape with straight teeth that transmit power between two intersecting axes under low speed. They are widely applied in many fields, such as differentials (vehicles), gear reducers, industrial machinery, and heavy machinery. In the design of high-precision SBGs, meeting the meshing conditions of spatial surfaces is indispensable. The theoretical tooth surface may exhibit slight variations depending on the design and the specific cutting methods. However, compared to other members of the bevel gear family, SBGs possess the advantage of having a simpler shape, rendering them relatively easy to manufacture. The conventional cutting methods for SBGs are generally classified into two categories: the generating and forming (non-generating) methods. The generating method usually employs a straight-edged tool in reciprocating or rotating milling motion to simulate the generation of a tooth on an imaginary generating gear. This imaginary generating gear is then fixed to a cradle table, and the cradle table and workpiece roll for the generating motion.

The mass-production generating methods can be implemented in two ways, including (1) the two-tool generating method and (2) the Coniflex cutting method with two giant interlocked circular cutters [1]. Both of the generating methods require dedicated machines to implement the generating process. As for the forming methods, three common ways are applied, including (1) the milling method with a disk tool [2], (2) the template planning tooth method, and (3) the Revacycle method with a large circular-type cutter [3]. The first method only requires a four-axis CNC machine; however, it will produce gears with poorer contact performance. The latter two methods require dedicated machines. The gear pairs produced by forming methods have lower contact performance than those by generating methods because the latter have point-conjugated tooth surfaces. If a gear pair has a reduction ratio greater than four, the ring gear is often processed using a forming method, while the pinion is processed using a generating method. The error of the ring gear’s tooth surfaces can be compensated for on the tooth surface of the pinion. However, the generating method uses five degrees of freedom in motion. Therefore, a dedicated machine or an expensive five-axis machine is required.

Among the various methods available, the disk milling cutting method is a good choice for producing large-size SBGs because it utilizes simple disk milling techniques and the widespread availability of four-axis machines. However, the conventional approach frequently encounters challenges associated with inadequate contact performance within the gear pair. Manufacturers typically rely on trial-and-error methods to adjust the pinion’s tool profile and NC codes for enhanced gear performance. Unfortunately, this iterative process is to be time-consuming.

Many researchers have established the mathematical models of SBGs depend on diverse cutting methods. In the early stages, Ichino et al. [4] proposed the tooth surface generated by a quasi-complementary crown gear. Chang and Tsay [5] developed a mathematical model for SBGs with the octoid form and investigated their tooth contact analysis and tooth undercutting. Machines employ both methods, necessitating a cradle for the generating process. Özel et al. [6] used end mills to cut SBGs, while Tsuji et al. [7] employed end mills to manufacture large-sized SBGs on a multitasking machine. Wang [8] introduced an envelope-shaping method for producing large-sized SBGs. These three methods can be implemented on three-axis to five-axis milling machines. However, they are time-consuming due to the necessity of contour machining. Coniflex SBGs have crowning of the teeth, exhibiting excellent contact performance. Furthermore, this approach can serve as a grinding process for producing highly precise gears, rendering it a widely adopted method for mass production. Stadtfeld [9] proposed a CNC free-form machine to replace dedicated machines for manufacturing the Coniflex SBGs. Zhang et al. [10] developed their machine and mathematical model for the Coniflex SBGs. Shih et al. [11] establish their mathematical model of the Coniflex SBGs based on the five-axis CNC machine. After that, they [12] found the mathematical model of the Gleason straight-bevel Coniflex generator. Based on the provided model, modern numerical methods can be applied to conduct tooth contact analysis and reduce gear manufacturing errors. Fuentes-Aznar et al. [13] presented their mathematical model for the Coniflex SBGs and investigated the influence of the tool radius on bending stresses using the finite element method. The methods mentioned above involve single indexing using a milling process. Continuous indexing has recently attracted attention due to its relatively fast processing speed and accuracy. Shih proposed [14] the mathematical model of face-hobbed SBGs. Subsequently, her research team [15] conducted this cutting method on a six-axis CNC bevel gear cutting machine. Li et al. [16] developed a cycloid rotational indexing method for SBGs. Most existing mass-production methods are conducted on specialized dedicated machines, six-axis CNC bevel gear cutting machines, or five-axis CNC milling machines. In contrast, four-axis CNC machine tools are more affordable and accessible. However, a four-axis method for manufacturing SBG gears with optimal contact performance has not yet been developed.

This paper aims to develop a mathematical model for SBGs based on a four-axis CNC milling machine. The gears are manufactured using the forming method, exhibiting commendable contact performance. The design of the pinion’s tooth surface uses the application of an ease-off technique. Initially, the ring gear serves as the reference gear, and the profile of the disk tool for the pinion is derived based on the gear’s conjugate tooth surface. After this, a sensitivity analysis method is utilized to determine the corrections required for the four-axis motion during the cutting process of the pinion. The contact performance of the design gear pair is evaluated using ease-off and tooth contact analysis. The resulting numerical control (NC) codes are then programmed and simulated using VERICUT software. Finally, a cutting experiment is executed to validate the correctness of our developed mathematical model.

2 Mathematical model of the gear tooth surface based on a universal machine

When the ratio of teeth numbers in a gear pair is greater than four, the ring gear in the gear pair can be manufactured using the forming method. In this case, the pinion must be processed using the generating method to achieve conjugate contact between two gears. During processing, the forming method usually adopts a disk tool. The tool’s outer edge is tangent to the gear tooth root line. The tool moves from the toe to the heel of the gear to produce the entire tooth surface. Figure 1 depicts the coordinate systems between a disk tool and the work gear based on a universal machine for manufacturing a gear. The tool and the work gear connect fixedly to coordinate systems \({S}_{{\text{t}}}\) and \({S}_{1}\), respectively, while the auxiliary coordinate systems \({S}_{{\text{a}}}\) to \({S}_{{\text{d}}}\) indicate the relative motion between them. Where the gear parameter \({\delta }_{{\text{f}}}\) is the gear’s root angle, \({M}_{{\text{d}}}\) is the mounting distance, and \({\xi }_{0}\) is the cone distance at the mean. The parameter \(\xi\) is a variable controlling the infeed from gear toe to heel and \(s\) is the cutting stock.

Fig. 1
figure 1

Coordinate systems between a disk tool and the work gear are based on a universal machine

The tool profile for machining the ring gear is directly specified, while the pinion’s tool profile needs to be further determined based on the gear’s tooth surface. The tool’s cutting edge of the ring gear can be either a straight or circular edge, both with a fillet. The former’s position vector may be represented in the tool coordinate system \({S}_{{\text{t}}}\) as

$${\mathbf r}_\text{t}\left(u,\beta\right)=\left[x\left(y-r_\text{a}\right)cos\beta-\left(y-r_\text{a}\right)sin\beta\;1\right]^\text{T}$$
(1)

here

$$\left\{\begin{array}{c}x=\pm \left({p}_{{\text{w}}}/2+usin{\alpha }_{{\text{b}}}\right)\\ y=ucos{\alpha }_{{\text{b}}}\end{array}\right.$$

where \(u\) is the profile variable of the cutting edge, \(\beta\) is the tool’s rotation angle, \({\alpha }_{{\text{b}}}\) is the profile angle, \({p}_{{\text{w}}}\) is the point width, and \({r}_{{\text{a}}}\) is the tool radius. The tool locus position vector \({\mathbf{r}}_{1}\) observed in \({S}_{1}\) is represented as Eq. (2) through a coordinate transformation matrix from \({S}_{{\text{t}}}\) to \({S}_{1}\).

$${\mathbf{r}}_{1}\left(u,\beta ,s,\xi \right)={\mathbf{M}}_{1t}\left(s,\xi \right){\mathbf{r}}_{t}\left(u,\beta \right)$$
(2)

where the transformation matrix is

$${\mathbf{M}}_{1t}\left(s,\xi \right)=\left[\begin{array}{cccc}1& 0& 0& 0\\ 0& cos{\delta }_{f}& sin{\delta }_{f}& 0\\ 0& -sin{\delta }_{f}& cos{\delta }_{f}& -{M}_{d}\\ 0& 0& 0& 1\end{array}\right]\left[\begin{array}{cccc}1& 0& 0& 0\\ 0& 1& 0& {r}_{a}+s\\ 0& 0& 1& {\xi }_{0}+\xi \\ 0& 0& 0& 1\end{array}\right]$$

The final tooth surface can be obtained when the cutting stock \(s\) equals zero. Finally, adhering to the conjugate condition where the normal \({\mathbf{n}}_{1}\) is perpendicular to the relative velocity \({\mathbf{v}}_{1}^{\left(1{\text{t}}\right)}\), the following meshing equation [17] can be employed to ascertain the tooth surface of the gear.

$${f}_{1}\left(u,\beta ,\xi \right)={\mathbf{n}}_{1}\cdot {\mathbf{v}}_{1}^{\left(1{\text{t}}\right)}=\left[\frac{\partial {\mathbf{r}}_{1}\left(u,\beta ,\xi \right)}{\partial u}\times \frac{\partial {\mathbf{r}}_{1}\left(u,\beta ,\xi \right)}{\partial \beta }\right]\cdot \left[\frac{\partial {\mathbf{r}}_{1}\left(u,\beta ,\xi \right)}{\partial \xi }\stackrel{\cdot }{\xi }\right]=0$$
(3)

3 Design a tool profile of the pinion

Designing the gear teeth to promote point contact on the tooth surfaces between two mating gears is a common practice to enhance the meshing performance of bevel gears. In this context, the pinion undergoes manufacturing through the forming method instead of the generating method. Initially, the profile of the disk tool must be designed. The tool profile for the pinion is determined by referencing the conjugate tooth surface of the ring gear. We can use the ring gear as a tool to cut the pinion, thus obtaining tooth surfaces that are conjugate with the ring gear. The pinion and gear are installed in their respective assembly positions as shown in Fig. 2. They are fixedly connected to coordinate systems \({S}_{1}\) and \({S}_{2}\), respectively. The auxiliary coordinate systems \({S}_{{\text{a}}}\) and \({S}_{{\text{b}}}\) describe the assembly position between them, where the parameters \({\phi }_{1}\) and \({\phi }_{2}\) are the rotation angles of the pinion and gear, respectively, and \(\sigma\) is their shaft angle.

Fig. 2
figure 2

Coordinate systems between the ring gear and its conjugate pinion

Assuming that \({\mathbf{R}}_{2}\) is the position of the gear’s tooth surface having two independent variables, \(u\) and \(\beta\), its locus position in \({S}_{1}\) can be represented as

$${\mathbf{r}}_{g}\left(u,\beta ,{\phi }_{1},{\phi }_{2}\right)={\mathbf{M}}_{12}\left({\phi }_{1},{\phi }_{2}\right){\mathbf{R}}_{2}\left(u,\beta \right)$$
(4)

The coordinate transformation matrix is

$${M}_{12}({\phi }_{1},{\phi }_{2})=\left[\begin{array}{cccc}{\text{cos}}{\phi }_{1}& -{\text{sin}}{\phi }_{1}& 0& 0\\ {\text{sin}}{\phi }_{1}& {\text{cos}}{\phi }_{1}& 0& 0\\ 0& 0& 1& 0\\ 0& 0& 0& 1\end{array}\right]\left[\begin{array}{cccc}1& 0& 0& 0\\ 0& {\text{cos}}\sigma & -{\text{sin}}\sigma & 0\\ 0& {\text{sin}}\sigma & {\text{cos}}\sigma & 0\\ 0& 0& 0& 1\end{array}\right]\left[\begin{array}{cccc}{\text{cos}}{\phi }_{2}& -{\text{sin}}{\phi }_{2}& 0& 0\\ {\text{sin}}{\phi }_{2}& {\text{cos}}{\phi }_{2}& 0& 0\\ 0& 0& 1& 0\\ 0& 0& 0& 1\end{array}\right]$$

In the above equation, the ratio of \({\phi }_{1}\) to \({\phi }_{2}\) is equal to \({z}_{2}/{z}_{1}\), where \({z}_{1}\) and \({z}_{2}\) represent the teeth numbers of the pinion and gear, respectively. Consequently, the locus becomes a function of two tool variables, \(u\) and \(\beta\), along with one motion variable \({\phi }_{2}\). The conjugate tooth surface \({\mathbf{R}}_{{\text{g}}}\) can be determined by the following equation of meshing:

$${f}_{{\text{g}}}\left(u,\beta ,{\phi }_{2}\right)={\mathbf{n}}_{{\text{g}}}\cdot {\mathbf{v}}_{{\text{g}}}^{\left({\text{g}}2\right)}=\left[\frac{\partial {\mathbf{r}}_{{\text{g}}}\left(u,\beta ,{\phi }_{2}\right)}{\partial u}\times \frac{\partial {\mathbf{r}}_{{\text{g}}}\left(u,\beta ,{\phi }_{2}\right)}{\partial \beta }\right]\cdot \left[\frac{\partial {\mathbf{r}}_{{\text{g}}}\left(u,\beta ,{\phi }_{2}\right)}{\partial {\phi }_{2}}\stackrel{\cdot }{{\phi }_{2}}\right]=0$$
(5)

Following this, by defining the tool’s rake face at the midpoint of the conjugate tooth surface, the intersection curves \({\mathbf{r}}_{{\text{p}}}\) can be determined using Eq. (6), where \({\mathbf{p}}_{{\text{r}}}\) represents a point on the plane, and \({\mathbf{n}}_{{\text{r}}}\) is the normal vector to the plane. Subsequently, the normal \({\mathbf{n}}_{{\text{p}}}\) to the curve can be determined. These curves collectively shape the contour of the tool, as illustrated in Fig. 3.

Fig. 3
figure 3

Profile of a disk tool for the pinion

$${\mathbf{n}}_{{\text{r}}}\cdot \left({\mathbf{R}}_{{\text{g}}}\left(u,\beta \right)-{\mathbf{p}}_{{\text{r}}}\right)=0$$
(6)

Considering assembly and manufacturing errors, gear pairs are typically designed for point contact. This necessitates fine-tuning the pinion’s tooth surface along profile and longitudinal directions. A specialized tool achieves profile crowning, while longitudinal crowning is incorporated during machining. A second-order correction is applied to the tool profile for the profile points depicted in Fig. 4. Utilizing Eq. (7), we subsequently employ a fourth-degree polynomial to fit the corrected profile points \({\mathbf{r}}_{{\text{l}}}\), as outlined in Eq. (8), where \(\delta\) represents the correction quantity. This modified tool is then employed to generate the initial tooth surfaces of the pinion by the aforementioned mathematical model.

Fig. 4
figure 4

Profile crowning of the disk tool for the pinion

$${\mathbf{r}}_{{\text{l}}}={\mathbf{r}}_{{\text{p}}}-\delta {\mathbf{n}}_{{\text{p}}}$$
(7)
$${\mathbf{r}}_{{\text{l}}}\left(u\right)=\sum_{{\text{k}}=0}^{4}{a}_{{\text{k}}}{u}^{{\text{k}}}$$
(8)

4 Four-axis coordinates for manufacturing SBGs

Both the pinion and gear undergo machining for their tooth surfaces utilizing a standard four-axis milling machine. Four-axis centers can achieve up to 4-axis simultaneous machining by programming numerical control (NC) programs. They offer great flexibility, particularly in applications related to machining tooth surfaces. Figure 5 illustrates the coordinate systems between the disk tool and the work gear on the four-axis machine. To facilitate the machining of the pinion, a workpiece rotary table is situated on the machine bed, allowing the pinion workpiece to be horizontally positioned. An additional 90° tool axis is installed for the ring gear, as depicted in the diagram.

Fig. 5
figure 5

Coordinate systems between the disk tool and the work gear for the four-axis CNC machine

Transforming the tool origin from the coordinate system \({S}_{{\text{t}}}\) to \({S}_{1}\) by the transformation matrix \({\mathbf{M}}_{1{\text{t}}}\left(s,\xi \right)\) in Eq. (2) yields the tool cutting coordinates, as shown in Eq. (9), where variables \(s\) and \(\xi\) are used to control the cutting stock and the infeed from toe to heel of the tooth surface. The workpiece rotation angle for the pinion is around the \(A\)-axis, the \(X\)- and \(Y\)-axes are employed for motion along the face width, and the \(Z\)-axis is used to position the tool at the cutting location. In the ring gear’s case, the workpiece rotation angle is around the \(C\)-axis, the \(X\)- and \(Z\)- axes are utilized for movement along the face width, and the \(Y\)-axis is utilized for moving to the cutting location. The four-axis cutting coordinates for the pinion and gear are converted from the universal machine settings and listed as Eqs. (10) and (11).

$$\left\{\begin{array}{l}x\left(s,\xi \right)=0\\ y\left(s,\xi \right)=\left(s+{r}_{{\text{a}}}\right)cos{\delta }_{{\text{f}}}+\left(\xi +{\xi }_{0}\right)sin{\delta }_{{\text{f}}}\\ z\left(s,\xi \right)=-\left(s+{r}_{{\text{a}}}\right)sin{\delta }_{{\text{f}}}+\left(s+{r}_{a}\right)cos{\delta }_{{\text{f}}}-{M}_{{\text{d}}}\end{array}\right.$$
(9)
$$\left\{\begin{array}{l}{c}_{{\text{x}}}\left(s,\xi \right)=z\left(s,\xi \right)\\ {c}_{{\text{y}}}\left(s,\xi \right)=y\left(s,\xi \right)\\ {c}_{{\text{z}}}\left(s,\xi \right)=0,{\psi }_{{\text{a}}}\left(\xi \right)=0\end{array}\right.$$
(10)
$$\left\{\begin{array}{l}{c}_{{\text{x}}}\left(s,\xi \right)=y\left(s,\xi \right)\\ {c}_{{\text{z}}}\left(s,\xi \right)=-z\left(s,\xi \right)\\ {c}_{{\text{y}}}\left(s,\xi \right)=0,{\psi }_{{\text{c}}}\left(\xi \right)=0\end{array}\right.$$
(11)

5 Corrected four-axis coordinates for cutting the pinion’s tooth surface

When deriving the pinion’s tooth surface, we utilize the profile at the gear’s conjugate middle tooth surface to design the cutting tool. As a result, conjugation occurs exclusively in the middle of the teeth between two gears, given that the pinion is manufactured using the forming method. Figure 6a illustrates deviations \({\delta }_{{\text{e}}}\) between the pinion’s tooth surface and the gear’s conjugate surface, with negative errors toward the toe and positive errors toward the heel. Therefore, we must compensate for tooth surface errors to obtain a tooth surface that closes the conjugate tooth surface. Additionally, second-order crowning \({\delta }_{{\text{c}}}\) is applied in the tooth’s longitudinal direction to absorb assembly and manufacturing errors, as shown in Fig. 6b.

Fig. 6
figure 6

Target corrections for the pinion’s tooth surface

The correction target \({\delta }_{{\text{T}}}\) is the sum of the error compensation \(-{\delta }_{{\text{e}}}\) and the crowning amount \({\delta }_{{\text{c}}}\) for the pinion, as expressed in the following equation. These can be used to correct the cutting path further to obtain a better pinion tooth surface.

$${\delta }_{{\text{T}}}=-{\delta }_{{\text{e}}}+{\delta }_{{\text{c}}}$$
(12)

Substituting \(s=0\) into Eq. (10), the initial cutting path of \({c}_{{\text{x}}0}\) and \({c}_{{\text{y}}0}\) can be obtained. Then, the third-order correction polynomials of the variable \(\xi\) are added to the four-axis motion as the following equation:

$$\left\{\begin{array}{l}{c}_{{\text{x}}}\left(\xi \right)={c}_{{\text{x}}0}\left(\xi \right)+{x}_{0}+{x}_{1}\xi +{x}_{2}{\xi }^{2}+{x}_{3}{\xi }^{3}\\ {c}_{{\text{y}}}\left(\xi \right)={c}_{{\text{y}}0}\left(\xi \right)+{y}_{0}+{y}_{1}\xi +{y}_{2}{\xi }^{2}+{y}_{3}{\xi }^{3}\\ {c}_{{\text{z}}}\left(\xi \right)={z}_{0}+{z}_{1}\xi +{z}_{2}{\xi }^{2}+{z}_{3}{\xi }^{3}\\ {\psi }_{{\text{a}}}\left(\xi \right)={a}_{0}+{a}_{1}\xi +{a}_{2}{\xi }^{2}+{a}_{3}{\xi }^{3}\end{array}\right.$$
(13)

where \({x}_{{\text{i}}}\), \({y}_{{\text{i}}}\), and \({z}_{{\text{i}}}\) represent the coefficients for three translations, while \({a}_{{\text{i}}}\) represents the coefficients for a workpiece rotation, and the subscript \(i\) indicates degrees ranging from 0 to 3.

If the target corrections \(\left\{\delta {D}_{{\text{i}}}\right\}\) are provided, sensitivity analysis can be employed to determine the sensitivity matrix \(\left[{S}_{{\text{ij}}}\right]\) of tooth surface topology points concerning the polynomial coefficients. The corrections to the polynomial coefficients \(\left\{\delta {a}_{{\text{j}}}\right\}\) can be obtained using the least squares method through the following equation.

$$\left\{\delta {a}_{{\text{j}}}\right\}={\left({\left[{S}_{{\text{ij}}}\right]}^{{\text{T}}}\left[{S}_{{\text{ij}}}\right]\right)}^{-1}{\left[{S}_{{\text{ij}}}\right]}^{{\text{T}}}\left\{\delta {D}_{{\text{i}}}\right\}$$
(14)

6 Numerical examples and discussion

The numerical example features a pair of SBGs with a high gear ratio employed in a scroll chuck for a turning machine. Their design parameters, gear blank parameters, and tool parameters are shown in Table 1. The gears have tooth numbers of 13 and 153, with a module of 3.0 \({\text{mm}}\). The tool diameters for the pinion and ring gear are 65 \({\text{mm}}\) and 126 \({\text{mm}}\), respectively, with initial point widths of 2.20 \({\text{mm}}\) and 2.04. Based on the blank parameters, the gear blanks of the example are plotted and depicted in Fig. 7.

Table 1 Basic gear, gear blank, and tool parameters for the example pair
Fig. 7
figure 7

Gear blanks of the example pair

The tool for the ring gear is designed as a disk cutter with a straight edge and a fillet, illustrated in Fig. 8a. Using this tool to machine the gear tooth surface, and based on this, we derive the conjugate tooth surface. Subsequently, we can determine the tool profile for the pinion. In this case, a relief amount of 0.03 \({\text{mm}}\) is applied to the tool profile of the pinion. The partial positions of tool profile points and their position equations can be found in Table 2, accompanied by the tool profile diagram shown in Fig. 8b. In the manufacturing process, the point width of the gear’s tool is increased by 0.1 \({\text{mm}}\) to achieve a backlash of 0.1 \({\text{mm}}\). Additionally, to prevent overcutting at the toe of the tooth surface, the point width of the pinion’s tool is reduced by 0.5 \({\text{mm}}\).

Fig. 8
figure 8

Profiles of the disk cutters for both gears

Table 2 Partial data points of the pinion cutter profile

Sensitivity analysis is a common method to rectify tooth surface errors in gear manufacturing. A sensitivity matrix for machine settings in relation to tooth surface errors can be derived by systematically examining the influence of different machining machine settings on these errors. Following this, adjustments to the machine settings can be ascertained based on the desired correction amount for the tooth surface. In this case, it is essential to correct the cutting motion of the pinion to attain the desired tooth surface. In this context, our focus is solely on correcting the movement along the \(y\) and \(z\) machine axes. The flank sensitivity topographies of their polynomial coefficients for motion have been examined, and the findings are presented in Fig. 9. The coefficient \(y0\) is associated with tooth profile direction error, \(z0\) is related to diagonal direction error, and the remaining coefficients are associated with tooth face width direction error. These sensitivity topographies can be employed to construct the sensitivity matrix of coefficients for determining the corrections.

Fig. 9
figure 9

Flank sensitivity topographies correspond to the selected coefficients of coordinates for the pinion

Figure 10a presents the deviation of the uncorrected pinion tooth surface compared to the conjugate tooth surface. Negative errors result in a clearance between the pinion and gear, while positive errors lead to interference between them. The maximum interferences at the toe and heel are 21.3 \(\mathrm{\mu m}\) and 171.8 \(\mathrm{\mu m}\), respectively, with a tooth thickness error of − 0.8 \(\mathrm{\mu m}\). Additionally, to mitigate assembly sensitivity, a second-order crowning amount of 100.0 \(\mathrm{\mu m}\) is applied in the longitudinal direction of the pinion tooth surface, as depicted in Fig. 10b. The correction target is computed by reverse deviations adding corrections, and its result is illustrated in Fig. 11.

Fig. 10
figure 10

Flank deviation and crowning of the pinion tooth surface

Fig. 11
figure 11

Correction target of the pinion tooth surface

Once the sensitivity matrix and correction target are obtained, the correction amounts for motion coefficients can be determined according to Eq. (14). Adding these correction amounts to the initial coordinates results in the corrected machining positions for the pinion. The four-axis coordinates for producing both gears are determined and listed in Table 3. Substituting the cutting coordinates of the gears yields the tooth surfaces. The solved tooth surface points can be used to construct a 3D gear model, as illustrated in Fig. 12. The deviation between the final corrected tooth surface of the pinion and the target tooth surface is then investigated. The results are presented in Fig. 13. The maximum positive deviation in the tooth surface is + 13.5 \(\mathrm{\mu m}\), and the tooth thickness deviation is − 0.213 \(\mathrm{\mu m}\). Because of the originally designed 0.1-mm backlash, there will be no interference issues with the gears.

Table 3 Four-axis cutting coordinates for both gears
Fig. 12
figure 12

3D model of the gears (created using SolidWorks)

Fig. 13
figure 13

Simulated flank topographic deviations of the pinion after correction

Figure 14 shows the ease-off topography for the numerical example. The ease-off has a maximum amount of 152.4 \(\mathrm{\mu m}\). All ease-off amounts are positive, indicating no interference between the pinion and gear, and are in point contact. Figure 15 illustrates the result of tooth contact analysis. The contact points are located in the middle of the tooth, and the tooth-bearing occupies approximately one-third of the tooth face width. The curves of angular transmission errors for three teeth intersect, indicating that vibration is not expected to occur. A maximum transmission angle error of 20.1 \(arcsec\) is quite reasonable for a bevel gear design.

Fig. 14
figure 14

Ease-off topography for the numerical example

Fig. 15
figure 15

Result of tooth contact analysis for the numerical example

The commercially available software, VERICUT, is used for gear-cutting simulation to eliminate NC program errors. Here, only the cutting simulation of the pinion is presented in Fig. 16. Using the tooth surface error analysis software developed by our lab, the simulated errors compared to the theoretical tooth surface were calculated. The results are shown in Fig. 17a for the pinion, with a maximum error of 7.47 \(\mathrm{\mu m}\) and a tooth thickness error of − 8.616 \(\mathrm{\mu m}\). Figure 17b shows the results for the ring gear, with a maximum error of 5.22 \(\mathrm{\mu m}\) and a tooth thickness error of + 0.283 \(\mathrm{\mu m}\). Both results validate the correctness of the NC program programming. Finally, we conducted cutting experiments on a four-axis CNC milling machine for the pinion and ring gear. Figure 18 shows the photograph of the completed gears. The tooth-bearing is very close to the target positions we designed.

Fig. 16
figure 16

Cutting simulation for the pinion using VERICUT

Fig. 17
figure 17

Flank deviations of the simulated tooth surfaces by VERICUT compared to the theoretical tooth surfaces

Fig. 18
figure 18

Photograph for the produced gear pair

7 Conclusions

This paper proposes an innovative mathematical model for the tooth surfaces of SBGs produced using the forming method. Such a model ensures a good contact performance between two gears. It also provides a feasible solution for mass-producing SBGs using a four-axis machine. In this study, with the ring gear as the reference gear, we derived the tool profile for the pinion along with its corresponding four-axis nonlinear cutting movement by considering the condition of point conjugate contact in a gear pair. Subsequently, two analysis methods, ease-off and tooth contact analysis, are employed to validate that the gear pair has a better contact performance. The final numerical control codes, generated based on the established mathematical model, underwent simulation using VERICUT software for the cutting process. The maximum tooth surface errors for the pinion and gear are determined to be 7.47 \(\mathrm{\mu m}\) and 5.22 \(\mathrm{\mu m}\), respectively, while their tooth thickness errors were − 8.616 \(\mathrm{\mu m}\) and + 0.283 \(\mathrm{\mu m}\). These results successfully confirm the accuracy of the NC codes. Once the design is finalized, it can be directly translated into manufacturing, significantly shortening the overall development time of SBGs using this cutting method. The machining approach can be implemented on a four-axis CNC machine tool, significantly reducing machine costs for manufacturers and enhancing their competitiveness.