1 Introduction

Precision optical components such as optical lenses and mirrors are essential in laser processing, national defense, and astronomical observation fields. The surface profile error and roughness of optical components play a decisive role in the whole equipment’s performance. However, it is challenging to manufacture high-precision optical components. Precision optical components are usually polished to reduce microscopic surface irregularities. Tuell et al. believe that polishing will inevitably leave different spatial frequency errors on the machined surface [1]. Generally, the low spatial frequency (LSF) error refers to the surface profile error, the middle spatial frequency (MSF) error refers to the surface waviness, and the high spatial frequency (HSF) error refers to the surface roughness. Different spatial frequency errors have different effects on the imaging results of the optical system. Achilles et al. found that M-HSF errors will scatter light and reduce contrast, which limits the performance of precision optical systems [2].

The machining path planning method for complex surfaces usually uses the iso-planar and iso-parametric methods [3]. Because of the single moving direction of the machining path, it is easy to generate periodic errors. Some studies have been carried out to suppress surface errors. Dong et al. analyzed the performance of three kinds of fractal fragmentation machining paths and proposed a random fractal-like path to better smooth surface texture and suppress surface ripples [4]. Nie et al. proposed a new polishing process based on magnetorheological finishing (MRF), smooth polishing, and ion beam figuring [5]. Smooth polishing is used to suppress MSF errors and MRF is used to suppress most of the LSF errors. Feng et al. proved that the polishing path obtained by the circular interpolation method can balance the contour error and power spectral density (PSD) curves [6]. Wan et al. proposed the use of a bi-step raster path to suppress the first two-order peaks of the error spectrum to reduce the MSF errors [7]. Hu et al. used a combination of MRF and smooth polishing to suppress surface errors [8]. MRF was used to suppress LSF errors, and smooth polishing based on a pseudo-random path was used to suppress M-HSF errors. Del Hoyo et al. investigated the relationship between processing parameters and PSD to suppress HSF errors by optimizing the processing parameters [9]. Lin et al. found that the use of flexible grinding wheels resulted in lower LSF errors and HSF errors than the use of rigid grinding wheels and could suppress some MSF errors during the grinding of optical fused silica [10]. Takizawa et al. used a pseudo-random path based on circular elements to suppress repetitive patterns on polished surfaces, and the surface ripple obtained using this path was significantly better than other pseudo-random paths [11]. Zha et al. used both changing the direction of path formation and the path spacing to avoid superposition of the convolution effect during polishing [12]. Huang et al. proposed a pseudo-random based on the traveling salesman problem to reduce the impact of periodic polishing paths [13]. The path divides the processing point into sections by clustering, then solves the optimal path for each subclass, and finally merges the subclasses. Maloney et al. concluded that MRF can be used to suppress LSF errors of optical components [14]. Dai et al. combined a part-random path based on maximum entropy theory with MRF to obtain a part with high shape accuracy and low MSF errors [15]. However, these studies mainly focus on the polishing of flat or simple surfaces and do not applicable to complex surfaces.

This study focuses on the use of pseudo-random paths to suppress M-HSF errors generated in free-form surface polishing. The specific method is to use the pseudo-random path planning method of mesh surface based on the MABF algorithm to create smooth and uniformly distributed pseudo-random paths on the free-form surface, as is shown in Fig. 1. Section 2 describes the MABF algorithm and the planar parameterization, which transforms the path planning problem from the free-form surface into a plane. A pseudo-random path planning method for arbitrary boundary regions is presented in Section 3. In Section 4, the pseudo-random path on the plane is inversely mapped to free-form surface by the area coordinate method, and NURBS smoothing is applied to the path. In Section 5, five different pseudo-random path planning methods are compared and the superiority of the proposed path planning method in this study is demonstrated. Then the feasibility of the proposed path planning method is verified by simulation of some cases. Verification experiments on the effectiveness of the pseudo-random machining path based on space MABF mapping for suppressing M-HSF errors in free-form surface polishing are conducted in Section 6.

Fig. 1
figure 1

The generation process of pseudo-random machining path based on space MABF mapping

2 Planar parameterization using the MABF algorithm

2.1 MABF algorithm

Planar parameterization is a method of converting mesh surfaces to mesh planes, and it allows the features of each triangle to be preserved as much as possible during the conversion. For uniformity of machining paths on free-form surfaces, machining paths are planned based on the mesh parameterization method. The original free-form surface is divided into triangular meshes, and each triangle is mapped to the plane according to the position and geometric relationship. In this process, triangles are deformed to different degrees. The traditional Angle-Based Flattening (ABF) algorithm ensures that the angle change of each triangle before and after the planar parameterization is minimized and the geometric features of each triangle are retained to a maximum extent, thus reducing the deformation of the mesh during the mapping process. Traditional ABF algorithm uses the iterative solution method to obtain the optimal solution of large sparse matrices under constraints, which has high complexity, large computation, and low convergence efficiency. The MABF algorithm is proposed to improve computational efficiency and accuracy.

The basic principle of the MABF algorithm is to transform the planar parameterization problem into the computation of the optimal solution of the energy target equation for the mesh surface under constraints. When mapping a free-form surface from 3D to 2D using the MABF algorithm, each triangle needs to satisfy the following three conditions after parameterization:

  1. 1.

    The sum of the interior angles of each triangle is 180°.

  2. 2.

    The common sides of two adjacent triangles have the same length.

  3. 3.

    The sum of the angles connecting the inner vertices (non-boundary points) is 360°.

The above three constraints are expressed in matrix form as Eq. 1.

$$\left\{ \begin{gathered} A\vec{\alpha } - \pi = 0 \hfill \\ B\vec{\alpha } - 2\pi = 0 \hfill \\ C\ln (\sin \vec{\alpha }) = 0 \hfill \\ \end{gathered} \right.$$
(1)
$$\begin{gathered} \vec{\alpha } = \left[ {\alpha_{1}^{1} ,\alpha_{1}^{2} ,\alpha_{1}^{3} ,\alpha_{2}^{1} ,\alpha_{2}^{2} ,\alpha_{2}^{3} , \cdots ,\alpha_{{N_{f} }}^{1} ,\alpha_{{N_{f} }}^{2} ,\alpha_{{N_{f} }}^{3} } \right]^{T} \hfill \\ \hfill \\ \end{gathered}$$
(2)
$$A = \left[ {\begin{array}{*{20}l} 1 \hfill & 1 \hfill & 1 \hfill & {} \hfill & {} \hfill & {} \hfill & {} \hfill & {} \hfill & {} \hfill & 0 \hfill & 0 \hfill & 0 \hfill \\ {} \hfill & {} \hfill & {} \hfill & 1 \hfill & 1 \hfill & 1 \hfill & {} \hfill & {} \hfill & {} \hfill & {} \hfill & {} \hfill & {} \hfill \\ {} \hfill & {} \hfill & {} \hfill & {} \hfill & {} \hfill & {} \hfill & . \hfill & {} \hfill & {} \hfill & {} \hfill & {} \hfill & {} \hfill \\ {} \hfill & {} \hfill & {} \hfill & {} \hfill & {} \hfill & {} \hfill & {} \hfill & . \hfill & {} \hfill & {} \hfill & {} \hfill & {} \hfill \\ {} \hfill & {} \hfill & {} \hfill & {} \hfill & {} \hfill & {} \hfill & {} \hfill & {} \hfill & . \hfill & {} \hfill & {} \hfill & {} \hfill \\ 0 \hfill & 0 \hfill & 0 \hfill & {} \hfill & {} \hfill & {} \hfill & {} \hfill & {} \hfill & {} \hfill & 1 \hfill & 1 \hfill & 1 \hfill \\ \end{array} } \right]$$
(3)

where \(\vec{\alpha }\) is the angle of all triangles in the parameter plane. B and C are large sparse matrices. The number of rows is the number of internal vertices in the mesh and the number of columns is the number of angles in the mesh. For B, if the angel corresponding to the column number is connected to the vertex corresponding to the row number, the element in the matrix is 1. For C, the element whose row number is the vertex number and whose column number is the last number of the angle connected to the vertex is 1. The element whose row number is the vertex number and whose column number is the next number of the angle connected to the vertex is −1.

The deformation energy equation in matrix form is Eq. 4.

$$E(\alpha ) = \min ||I_{{3 \times N_{f} }} \times \vec{\alpha } - \vec{\beta }||_{F}^{{}}$$
(4)

where \(E\) is the deformation energy, and \(\vec{\beta }\) is the angle of each grid in the original surface.

$$\vec{\beta } = \left[ {\beta_{1}^{1} ,\beta_{1}^{2} ,\beta_{1}^{3} ,\beta_{2}^{1} ,\beta_{2}^{2} ,\beta_{2}^{3} , \cdots ,\beta_{{N_{f} }}^{1} ,\beta_{{N_{f} }}^{2} ,\beta_{{N_{f} }}^{3} } \right]$$
(5)

The planar parameterization problem is transformed into an optimization problem under nonlinear constraints with large sparse matrices. In order to verify the effectiveness of the MABF algorithm, three models of hemispherical, pentagonal, and saddle-shaped surfaces were simulated using the MABF algorithm and the ABF algorithm, respectively, in MATLAB R2021a and the computational time and errors were compared.

For the hemispherical surface, the program running time of the ABF algorithm was 351.89 s, and the calculation error is shown in Fig. 2a–b. Using the MABF algorithm, the program runs in 5.56 s and the calculation error is shown in Fig. 2c–d. The simulation results show that the computational efficiency of the MABF algorithm is significantly better than that of the ABF algorithm, and both algorithms get similar errors in the sum of the interior angles of triangles and the sum of peripheral angles of the vertexes. The mesh deformation of the two algorithms will be compared in the next section. Regarding computation time consumed, the ABF algorithm is more sensitive to the number of triangles than the MABF algorithm. Table 1 shows the time the two algorithms consume to compute some mesh surfaces.

Fig. 2
figure 2

a The errors in the sum of the interior angles of triangles obtained by ABF algorithm. b The errors in the sum of peripheral angles of the vertexes obtained by ABF algorithm. c The errors in the sum of the interior angles of triangles obtained by MABF algorithm. d The errors in the sum of peripheral angles of the vertexes obtained by MABF algorithm

Table 1 Time-consuming comparison of ABF and MABF algorithms

2.2 Planar parameterization

The MABF and the ABF algorithms use the free boundary method in the planar parameterization. Selecting a starting position of the planar parameterization near the center of the surface and then expanding it outward according to the mesh’s geometry. The ABF algorithm first selects an initial edge near the center of the mesh surface to determine the two initial triangles and then expands in all directions based on the other edges of these two initial triangles. However, due to errors in the geometric parameters of the triangles obtained in Section 2.1, using this method will make the errors accumulate in the same direction in the process of planar parameterization. It can produce large deviations at points that should coincide, resulting in severe deformation of some mesh regions in the parameterized plane and increasing the risk of mesh overlap after planar parameterization. MABF algorithm assumes that the geometric parameters of triangles remain the same before and after parameterization, and selects the midpoints of the three sides of each triangle as the extension datum instead of the three edges. The initial triangle is selected near the center of the mesh surface, and the midpoints of the corresponding edges of the adjacent triangles coincide with the midpoints of the initial triangle. The direction of the adjacent triangles can be determined according to the direction of the edges of the initial triangle. At this point, the position and direction of the adjacent triangles can be determined. Repeat this process until all triangles on mesh surfaces have completed the planar parameterization process.

Each mesh vertex after parameterization takes the average of multiple points. The planar parameterization based on the MABF algorithm fully considers the error accumulation in the planar parameterization and disperses the error to the vertices of each triangle, which avoids the error accumulation effectively. The planar parameterization method based on the MABF algorithm can effectively reduce the mesh’s deformation in the planar parameterization process and improve the accuracy of parameterization and path inverse mapping. The results of planar parameterization of the two algorithms are shown in Fig. 3.

Fig. 3
figure 3

Comparison of deformation degree of different planar parameterization methods. a Hemispherical surface. b The planar parameterization results of ABF algorithm. c The planar parameterization results of MABF algorithm. d The angle errors of mesh obtained by ABF algorithm. e The angle errors of mesh obtained by MABF algorithm

3 Pseudo-random path planning

Beaucamp et al. believe that the pseudo-random path can reduce the regular marks left by periodic machining paths on the surface and is used to suppress the MSF errors generated by sub-aperture polishing tools on the workpiece surface [16]. In optical imaging, periodic slight marks will scatter light, reducing the optical system’s contrast and reflectivity. The pseudo-random path increases the randomness of the machining path. Each new path point is randomly selected from the unpassed points around the last dwell point of the current path. The initial path point has eight moveable directions. The pseudo-random paths have the following characteristics:

  1. 1.

    The machining path passes through all the set dwell points in the machining area.

  2. 2.

    Each dwell point is passed through only once.

  3. 3.

    The machining paths are continuous and do not cross.

  4. 4.

    The path has strong adaptability to the shape of the polishing area.

The planning process of the pseudo-random path is shown in Fig. 4.

  1. 1.

    Presetting the dwell points in the machining area and then randomly selecting a path point (Proximity to the center of the processing area is recommended) as the initial point of the path.

  2. 2.

    Randomly select an unpassed dwell point around the current point as the next path point.

  3. 3.

    Repeat step 2 until all preset dwell points have been passed.

    If the path enters the dead zone, that is, all surrounding dwell points have been passed and there is no alternative direction for the next path point, perform the local turnaround step (step 4–step 6).

  4. 4.

    Around the current path point, select a path point that exists an unpassed dwell point around it and disconnect at that point.

  5. 5.

    Reverse the order of the paths after the breakpoint location, and then reconnect the two paths in order.

  6. 6.

    Determines whether there are unpassed dwell points around the current path point. If so, return to step 2. If not, go to step 7.

  7. 7.

    Return to step 5 and delete the last five path points, then return to step 2.

Fig. 4
figure 4

The process of the pseudo-random path planning method

A bicycle seat surface (as shown in Fig. 5a) is taken as the model, and the model was planar parameterized using the MABF algorithm. Then, the pseudo-random machining path is planned in the obtained plane, and the in-plane machining path is obtained, as shown in Fig. 5b.

Fig. 5
figure 5

a The bicycle seat model. b The pseudo-random path in plane

4 Path inverse mapping

4.1 Path inverse mapping algorithm

To achieve a uniform machining path on a free-form surface, it is necessary to inverse mapping the path obtained in the plane to 3D surface. The MABF algorithm has established the correspondence between the mesh in 3D and 2D, and it still needs to establish the correspondence of the points in mesh between in the 2D and 3D. The area coordinate method is used to establish the correspondence of the points in mesh between in 3D and in 2D. This is because the area coordinates can ensure that the positional properties of the point in the triangle do not change during the inverse mapping process.

All pseudo-random path points in the plane are located in triangles in the plane mesh. Define \(P(L_{i} ,L_{j} ,L_{m} )\), the path points in the triangle \(\Delta_{ijm}\), and convert Cartesian coordinates to area coordinates.

$$\begin{gathered} L_{i} = \frac{{S_{\Delta Pjm} }}{{S_{\Delta } }} = \frac{{\left[ {(x_{j} y_{m} - x_{m} y_{j} ) + (y_{j} - y_{m} )x + (x_{m} - x_{j} )y} \right]}}{2\Delta } \hfill \\ L_{j} = \frac{{S_{\Delta Pmi} }}{{S_{\Delta } }} = \frac{{\left[ {(x_{m} y_{i} - x_{i} y_{m} ) + (y_{m} - y_{i} )x + (x_{i} - x_{m} )y} \right]}}{2\Delta } \hfill \\ L_{m} = \frac{{S_{\Delta Pij} }}{{S_{\Delta } }} = \frac{{\left[ {(x_{i} y_{j} - x_{j} y_{i} ) + (y_{i} - y_{j} )x + (x_{j} - x_{i} )y} \right]}}{2\Delta } \hfill \\ \end{gathered}$$
(6)

where

$$S_{\Delta } = \frac{1}{2}\left[ {\begin{array}{*{20}c} 1 & {x_{m} } & {y_{m} } \\ 1 & {x_{i} } & {y_{i} } \\ 1 & {x_{j} } & {y_{j} } \\ \end{array} } \right] = \frac{1}{2}\left[ {(x_{i} y_{j} - x_{j} y_{i} ) + (y_{i} - y_{j} )x_{m} + (x_{j} - x_{i} )y_{m} } \right]$$
(7)

After obtaining the area coordinates of point P(x, y, z) in \(\Delta ijm\) in 2D space, the corresponding triangle \(\Delta IJM\) in 3D space is converted into Cartesian coordinates to obtain the corresponding point P′ (x′, y′, z′) in 3D space.

$$\left[ {\begin{array}{*{20}c} {x^{\prime}} \\ {y^{\prime}} \\ {z^{\prime}} \\ \end{array} } \right] = \left[ {\begin{array}{*{20}c} {x_{i} } & {x_{j} } & {x_{m} } \\ {y_{i} } & {y_{j} } & {y_{m} } \\ {z_{i} } & {z_{j} } & {z_{m} } \\ \end{array} } \right]\left[ {\begin{array}{*{20}c} {L_{i} } \\ {L_{j} } \\ {L_{m} } \\ \end{array} } \right]$$
(8)
$$\left[ {\begin{array}{*{20}c} 1 & 1 & 1 \\ {x_{i} } & {x_{j} } & {x_{m} } \\ {y_{i} } & {y_{j} } & {y_{m} } \\ \end{array} } \right]\left[ {\begin{array}{*{20}c} {L_{i} } \\ {L_{j} } \\ {L_{m} } \\ \end{array} } \right] = \left[ {\begin{array}{*{20}c} 1 \\ x \\ y \\ \end{array} } \right]$$
(9)

Arrange the path points after the inverse mapping in the order of the path points in the plane. By inverse mapping, the pseudo-random path planned in the plane is transferred to the 3D free-form surface, and the result is shown in Fig. 6.

Fig. 6
figure 6

Pseudo-random path planning result on a 3D bicycle seat

4.2 Path smoothing based on NURBS interpolation

The pseudo-random path has a high degree of directional randomness. The spindle will start, stop, and change direction frequently during machining, resulting in fluctuating feed rates and low stability, which shocks the spindle and its accessories. The pseudo-random path is smoothed by using non-uniform rational B-splines (NURBS) curve interpolation, and the path is smoothed while ensuring that the path passes through all the dwell points. NURBS is a standard mathematical model representing curves and surfaces in computer modeling. The NURBS curves are defined by three parameters: control point, weight factor, and node vector. The NURBS curves are defined as Eq. 10.

$$P(u) = \frac{{\sum\limits_{I = 0}^{n} {\omega_{I} d_{I} N_{I,K} (u)} }}{{\sum\limits_{I = 0}^{n} {\omega_{I} N_{I,K} (u)} }}$$
(10)

where

$$\left\{ \begin{gathered} N_{I,0} = \left\{ \begin{gathered} 1..........................................u \in \left[ {u_{I} ,u_{I + 1} } \right] \hfill \\ 0..........................................{\text{otherwise}} \hfill \\ \end{gathered} \right. \hfill \\ N_{I,K} (u) = \frac{{u - u_{I} }}{{u_{I + K + 1} - u}}N_{I,K - 1} (u) + \frac{{u_{I + K} - u}}{{u_{I + K} - u_{I + 1} }}N_{I + 1,K - 1} (u) \hfill \\ \end{gathered} \right.$$
(11)

Gordon et al. defined the order of the NURBS curves p as 3, then the order K is (p+1) = 4. The node vector is shown in Eq. 12 [17].

$$U = \left[ {u_{0} , \cdots ,u_{m} } \right] = \left[ {0,0,0,0,\frac{{l_{1} }}{{\sum\limits_{I = 1}^{m - p - 1} {l_{I} } }},\frac{{l_{1} + l_{2} }}{{\sum\limits_{I = 1}^{m - p - 1} {l_{I} } }},....,\frac{{\sum\limits_{I = 1}^{n - K - 1} {l_{I} } }}{{\sum\limits_{I = 1}^{m - p - 1} {l_{I} } }},1,1,1,1} \right]$$
(12)

To improve the interpolation efficiency, Ji et al. represented the NURBS curve in matrix form as in Eq. 13 [18].

$$P(u) = \frac{{\sum\limits_{I = 0}^{n} {\omega_{I} d_{I} N_{I,3} (u)} }}{{\sum\limits_{I = 0}^{n} {\omega_{I} N_{I,3} (u)} }} = \frac{{a_{3} u^{3} + a_{2} u^{2} + a_{1} u + a_{0} }}{{b_{3} u^{3} + b_{2} u^{2} + b_{1} u + b_{0} }}$$
(13)

where \(a_{0}\), \(a_{1}\), \(a_{2}\), and \(a_{3}\) are the coefficients of node parameters in the numerator, and \(b_{0}\), \(b_{1}\), \(b_{2}\), and \(b_{3}\) are the coefficients of node parameters in the denominator. The Adams-Bashforth and Adams-Moulton methods were used to perform the parameter densification process, and the interpolation method uses equal-periodic interpolation. As an example, Fig. 7 shows a NURBS curve (blue curve) controlled by pseudo-random path points (little red dots) in three-dimensional space in Section 4.1.

Fig. 7
figure 7

Pseudo-random path on a bicycle seat after NURBS smoothing

5 Discussion and application

Previous pseudo-random path planning methods had a limitation of only being used in the plane range. However, the proposed method for planning pseudo-random path on 3D complex free-form surfaces has broken through this limitation. This extension of pseudo-random paths to 3D space allows for wider applications. Dunn et al. proposed a unicursal random tool path that never intersected for CNC machining, as shown in Fig. 8a [19]. The method only introduces directional randomness in a specific area, failing to provide the global randomness for the path, requiring improved randomness. Zhang et al. proposed a pseudo-random tool path based on the perfect maze to reduce the HSF errors left by the small polishing tool, as shown in Fig. 8b [20]. This path has low directional randomness, as it only has two directions of randomness. Furthermore, part of the path lies beyond the polishing area boundary, increasing the risk of collision between the polishing tool and workpiece fixture. Moreover, the pseudo-random path based on perfect maze can only accommodate two boundaries in the same path direction. This is because the path planning process considers the first and second boundaries that appear successively as the marks of entering and exceeding the polished region. As a result, the path planning method based on perfect maze becomes less adaptable to the boundary of complex polished regions. Therefore, it becomes challenging to achieve path planning for the regions with complex boundaries. The random fractal-like path proposed by Dong et al. to suppress surface ripples is also an in-plane path planning method [4]. Although this method has a high degree of directional randomness and boundary adaptability, the path after smoothing has deviated from the dwell points, as shown in Fig. 8c. This will cause a significant deviation in the material removed during deterministic polishing and affect the surface accuracy after polishing.

Fig. 8
figure 8

a Unicursal random tool-path [19]. b Pseudo-random tool path based on the perfect maze [20]. c Random fractal-like path [4]

To evaluate the performance of the pseudo-random path planning method based on the space MABF mapping, the machining path planning of a hemispherical surface (radius: 30 mm, triangular mesh number: 100220) was carried out by this method. The control group uses a pseudo-random path planning method based on the projection method, which can also be used for surface path planning. In this case, the path points were set at a lateral and longitudinal distance of 0.5 mm. Table 2 shows the path data obtained by the two methods, and Fig. 9 shows the distribution of the path on the hemisphere.

Table 2 Data obtained from trajectory simulation
Fig. 9
figure 9

a Path obtained by projection method. b Path obtained by the pseudo-random path planning method based on space MABF mapping

Each path point has eight moveable directions, so a machining path step between 0.5 and 0.7071 mm is considered normal. The average step of the path obtained by the projection method has exceeded the normal range, and its maximum step greatly surpassing normal value. The excessive path step will lead to a large chord error due to overcutting or undercutting, which will seriously affect the profile accuracy of workpiece. In Fig. 9a, the path obtained by the projection method shows an obvious overcutting phenomenon at the edge of the hemispherical surface. The average step obtained by the MABF method is still within the normal range, but the maximum step is slightly larger than the normal range. To address the issue, a step reduction factor of slightly less than 1 can be introduced when setting the initial step. In summary, the path planning method based on space MABF mapping outperforms the projection method in terms of path uniformity, the number of dwell points, and the path step.

The proposed mesh surface pseudo-random path planning method based on the space MABF mapping can adapt to the complex free-form surface. The machining path planned using this method has high direction randomness, is not restricted by the shape of the free-form surface boundary, and has high adaptability to the surface boundary. The proposed method is adaptable to surface curvature changes and can plan pseudo-random paths with a high fitting degree and good uniformity on complex surfaces. In addition, NURBS smoothing is applied to the planned pseudo-random path, and the smoothed path still passes through all the set dwell points precisely, which ensures the accuracy of the removal amount of each dwell point. The comparison of different algorithms is shown in Table 3. In the table, the total number of directional degrees of freedom is 8, and path accuracy refers to whether the planned path accurately passes through the preset dwell points.

Table 3 Performance comparison of some pseudo-random paths

Some cases are used to verify the effectiveness of the proposed pseudo-random path planning method based on space MABF mapping. Figure 10 shows the planning results. Based on the results obtained, the proposed path planning method offers several advantages, such as strong adaptability to surface boundaries, good path smoothness, path uniformity, and high proximity of path to the surface. It can efficiently and effectively generate a pseudo-random machining path for a complex free-form surface, ensuring high-precision and high-quality machining in subsequent processes.

Fig. 10
figure 10

Planning results for different cases. a Sinusoidal surface. b Pentagram surface. c Concave-convex surface. d Bicubic B-spline surface. e Airfoil surface. f Rabbit surface model

6 Experiment

To further verify the effectiveness of the pseudo-random path planning based on space MABF mapping method to suppress the M-HSF errors in the polishing process, we conducted comparative experiments using four different machining paths. The polishing tool used in the experiments was a polishing sponge, and an alumina-based polishing liquid was used as the polishing medium. The polishing liquid was sprayed uniformly onto the surface of the workpiece using a peristaltic pump and an ultrasonic nozzle. The machining experiment uses a three-axis machine developed by the lab, shown in Fig. 11. The spindle motor is mounted on the Z-axis slide board, and the polishing liquid is continuously added during the polishing process using an ultrasonic nozzle. After surface meshing, planar parameterization, pseudo-random path planning, inverse mapping, and path smoothing, the pseudo-random machining path is in the form of spatial coordinates containing X, Y, and Z parameters in order of the path. The 3-axis machine reads the machining path data file. After starting the machine, the machine will control the movement of the three motion spindles based on path data. The shape of the workpiece is the spherical crown. Form Talysurf PGI 1240 surface profilometer was used to measure the surface of the workpiece before processing. The polishing tool uses a sponge head, and the abrasive grains in the polishing liquid are alumina oxide. The polishing tool rotates at a speed of 230 rpm, and all machining parameters were kept constant during the experiment.

Fig. 11
figure 11

Three-axis machining equipment

The polishing experiments used different path types such as pseudo-random path based on space MABF mapping, raster path, spiral path, and rectangular path. The dwell point spacing of machining paths was uniformly set to 0.5 mm. Each workpiece is polished twice for a total of 6 h. The polished workpieces are shown in Fig. 12, and the surface data was measured again. The collected measurements were processed, and the PSD curves of the surface using two polishing paths were depicted, as shown in Fig. 13. Table 4 displays the average PSD values for various paths in the 103–105 m−1 spatial frequency range before and after polishing. The suppression rates of several periodic paths are similar after polishing, and only the pseudo-random path obtains a significantly higher suppression rate. The experimental results show that using pseudo-random paths in the polishing process is more effective than using periodic paths in suppressing errors in the M-HSF range.

Fig. 12
figure 12

The surface of the workpieces after polishing

Fig. 13
figure 13

a PSD curves of workpiece surface before polishing. b PSD curves of workpiece surface after polishing

Table 4 The average PSD of the workpiece surfaces in the spatial frequency range of 103–105 m−1 before and after polishing

7 Conclusion

A mesh surface pseudo-random path planning method based on space MABF mapping is proposed to suppress the M-HSF errors generated in the polishing process of precision free-form surface optical components. The proposed method involves several stages: planar parameterization of spatial mesh surface based on the MABF algorithm, pseudo-random path planning in the plane, inverse mapping of the path to spatial surface, and smoothing of the path based on NURBS curves. The polishing path will be generated from the center of the mesh surface. Once the step of the dwell point is determined, the path-planning process can be performed heuristically without human intervention.

The MABF algorithm improves computational efficiency and error control compared to ABF. The MABF algorithm effectively improves planar parameterization accuracy. The advantages become more pronounced with an increasing number of meshes. The path smoothing method based on the NURBS curve interpolation not only smooths the path but also ensures that the path passes through each dwell point, which minimizes the impact of the path smoothing on the removal accuracy of each dwell point. Smooth pseudo-random paths with a high degree of directional randomness can suppress the generation of M-HSF errors in the polishing process, which is also verified in the polishing comparison experiments with periodic paths.

The proposed path planning method can effectively be used on complex mesh surfaces. Simulation results from various complex cases prove the versatility and robustness of the method. The proposed method can quickly obtain uniformly distributed pseudo-random paths on free-form surfaces. The error suppression strategy in this study is to increase the randomness of the machining path, which is not constrained by the shape of the workpiece. Using pseudo-randomized machining paths results in better error suppression capacity than periodic paths for any surface shape under the same process parameters. In addition, the pseudo-random path generation method proposed in this study can be combined with traditional polishing, magnetorheological polishing, jet polishing, milling, and even single-point diamond turning to improve the surface quality of machined parts. The idea of this study is to transform and process path coordinates, allowing the proposed path generation method to be utilized based on demand. However, the proposed path planning method needs to consume much time when there are a large number of dwell points. In the future, more efforts will be made to improve the efficiency of path planning further.