 Original Article
 Open Access
 Published:
A framework from point clouds to workpieces
Visual Computing for Industry, Biomedicine, and Art volume 5, Article number: 21 (2022)
Abstract
Combining computeraided design and computer numerical control (CNC) with global technical connections have become interesting topics in the manufacturing industry. A framework was implemented that includes point clouds to workpieces and consists of a mesh generation from geometric data, optimal surface segmentation for CNC, and tool path planning with a certified scallop height. The latest methods were introduced into the mesh generation with implicit geometric regularization and total generalized variation. Once the mesh model was obtained, a fast and robust optimal surface segmentation method is provided by establishing a weighted graph and searching for the minimum spanning tree of the graph for extraordinary points. This method is easy to implement, and the number of segmented patches can be controlled while preserving the sharp features of the workpiece. Finally, a contour parallel toolpath with a confined scallop height is generated on each patch based on Bspline fitting. Experimental results show that the proposed framework is effective and robust.
Introduction
Direct manufacturing from point clouds is a typical problem in reverse engineering and rapid prototyping. Some methods [1,2,3,4,5] can be used to directly generate the tool path from a point cloud for computer numerical control (CNC) machining.
These processes omit a global geometric construction, and the methods lose the essential geometric information (such as sharp features) during the machining process. For a point cloud, the local geometric information can be recovered using discrete techniques. However, this information is usually crude because the point cloud does not have a topological connectivity. It is therefore difficult to directly determine detailed geometric features from a point cloud. In this study, to address highprecision machining from geometric data, a framework is implemented from the point clouds to the workpieces, which can effectively determine and preserve sharp features.
Compared with point clouds, mesh models are widely used in computeraided design and CNC owing to their simplicity and topological connectivity. The construction of a mesh from a point cloud is a frequently used process in geometric modeling. A mesh reconstruction algorithm primarily includes explicit and implicit reconstructions. Traditional methods include the ballpivoting algorithm [6], crust algorithm [7], and Poisson surface reconstruction [8, 9]. With the development of deep learning, neural networks have also been used for mesh reconstruction. Explicit reconstruction methods based on neural networks [10, 11] work well for simple models but cannot deal with complex models. For complex models, implicit reconstruction methods exhibit a better performance. DeepSDF [12] uses a network to learn the signed distance of point to surface. To improve the geometric details, Gropp et al. [13] proposed implicit geometric regularization (IGR) by adding regular terms. These two implicit methods can be used to handle models with complex topologies and geometries.
The main purpose of mesh denoising is to remove mesh noise while retaining the sharp features of the object. Fleishman et al. [14] calculated the vertex positions through bilateral filtering. Rather than moving the vertex coordinates directly, Zheng et al. [15] applied a bilateral filter to normal vectors and then changed the vertex coordinates to obtain a better mesh than that achieved using a direct method. However, these two methods cannot preserve the sharp features. Although Zhang et al. [16] extended the total variation method to a mesh refinement, this approach tends to produce piecewise constant results. To overcome this drawback, Liu et al. [17] extended the total generalized variation (TGV) to a mesh, which is an approach called MeshTGV. As a key contribution, the authors constructed different facet operators and edge different operators and then used the variablesplitting and augmented Lagrange method (ALM) to solve the optimization problem. To obtain a mesh that can be used in CNC machining, in this study, IGR [13] is used to obtain a watertight model, and MeshTGV [17] is applied to denoise the mesh while preserving the sharp features.
Mesh segmentation is the process of dividing a complete model into several machinable surface patches and is an important step in a subtractive fabrication. This step can avoid collisions with the cutter during complex surface machining. Moreover, additional constraints can be applied to obtain better results, such as a fabrication direction constraint, the accessibility of the cutter, and setup and boundary constraints. Several methods have been proposed to address this problem. In addition to the discussions on additive fabrication [18,19,20,21,22], MahdaviAmiri et al. [23] introduced a novel carvable volume decomposition for efficient threeaxis subtractive CNC machining of 3D freeform objects; however, their approach was for rough machining. Herholz et al. [24] proposed a segmentation method based on a graph cut. In addition, Zhao et al. [25] introduced the concept of accessibility when segmenting a mesh to make each segmented patch avoid collisions with the cutter. However, the theory behind these two methods is incomplete and an incorrect result may occur. Although the method in ref. [26] effectively avoids this problem, a series of optimization methods is used to ensure the accessibility of each patch, which complicates the method. The preservation of sharp features has always been an important research subject in CNC subtractive manufacturing. However, none of the above methods consider sharp features during segmentation, which makes it impossible to effectively the preserve sharp features in the subsequent tool path planning and CNC machining. To overcome this drawback, a novel segmentation algorithm is proposed that uses a minimum spanning tree (MST). This method is easy to implement and can effectively control the number of segmented patches while preserving the sharp features of the workpiece.
After segmentation, a machinable tool path satisfying the scallop height constraint must be generated. Tool path planning plays an important role in CNC manufacturing. A good tool path must satisfy the following requirements: a confined scallop height error, no selfintersection, and as few sharp corners as possible. Tool path planning methods can be briefly classified into two categories: topological and parametric. Methods based on a topological form mainly include direction parallel methods [27, 28], contour parallel methods [29,30,31,32,33], and spacefilling curve methods [34,35,36,37,38]. Methods based on a parametric form mainly include isoparametric methods [39, 40], isoplane methods [41, 42], isoscallop height methods [43,44,45,46], and vector fieldbased methods [47,48,49,50,51]. Among them, contour parallel methods are widely used in the industry owing to their simple topological properties. However, these contour parallel methods tend to ignore whether the scallop height of the path corner satisfies the constraint when generating the tool path. To ensure the machining quality and effectively preserve the sharp features, a contour parallel tool path generation method is provided that strictly satisfies the scallop height constraint.
In this study, a unified framework is proposed for integrating these components and successfully converting point clouds into machinable tool paths for the final CNC machining. The pipeline includes three main steps: mesh generation from geometric data, mesh segmentation for the CNC, and path planning under the scallop height constraint (Fig. 1).
The proposed framework for converting point clouds into workpieces has the following highlights: (1) A unified framework from geometric data to workpieces is achieved; (2) The proposed segmentation method is easy to implement and can control the number of segmented patches while preserving the sharp features of the workpiece; (3) The generated contour parallel tool path of the proposed method strictly satisfies the scallop height constraint.
The remainder of this paper is organized as follows. The following section describes the methods used, which are divided into design, mesh generation, optimal surface segmentation method, and tool path planning with certified scallop height. The results are presented in Results section. The advantages and problems of the new approach are then discussed in Discussion section. Finally, some concluding remarks are provided in Conclusions section.
Methods
Design
In this study, to address highprecision machining from geometric data, a framework is implemented from the point clouds to the workpieces. The goals of the framework are as follows: (1) obtain the essential geometric information (such as sharp features) of the point clouds, (2) preserve the sharp features during machining, and (3) generate a machinable tool path.
To accomplish the above objectives, the proposed framework can be divided into three parts: mesh generation from geometric data, optimal surface segmentation for CNC, and toolpath planning with the certified scallop height. Further details of these objectives are provided in the following sections.
Mesh generation from geometric data
In this subsection, the methods used to generate a mesh model are briefly introduced. The point cloud is converted into a mesh using IGR [13], and the mesh is then denoised by applying MeshTGV [17]. The results show that IGR can produce a better mesh than the other mesh reconstruction methods, and MeshTGV can preserve sharp features without artifacts. To facilitate subsequent operations, a triangular mesh is converted into a quadrilateral mesh using Quadriflow [52]. An example of this is shown in Fig. 2.
IGR
Given an input point cloud χ = {x_{i}}_{i ∈ I} ⊂ ℝ^{3}, with or without normal data, \(\mathcal{N}={\left\{{n}_i\right\}}_{i\in I}\subset {\mathbb{R}}^3\). IGR learns a signed distance function \(f:{R}^{\mathbb{3}}\times {R}^m\to R\) using a multilayer perceptron. The loss function is defined as follows:
where λ > 0, and ‖∙‖ is L_{2} − norm.
The architecture is similar with DeepSDF and is easy to implement.
MeshTGV
Here, MeshTGV is used to refine a noisy mesh obtained from IGR by removing the noise [17]. With MeshTGV, some difference operators are constructed on the edges and facets of the mesh and a normal filter is applied to remove the noise while preserving the sharp features. The normal filter process is converted into a nondifferentiable optimization problem. Variable splitting and ALM are introduced to solve this problem and find a smoothed normal field. Subsequently, the vertices are updated to generate the final mesh model using the scheme proposed by Zhang et al. [53].
Quadriflow
QuadriFlow is used to convert a triangular mesh into a quadrilateral mesh. QuadriFlow was developed from Instant Meshes [54] and has certain constraints added. Specifically, the regularity constraint is enforced by minimizing the cost network flow, and the consistent orientation constraint is then successively enforced. According to these constraints, one can reoptimize the position field and extract the quadrilateral mesh from the position field.
Optimal surface segmentation for CNC
To effectively preserve the sharp features of the workpiece during processing, the cutter should follow a path parallel to the sharp features rather than intersecting them. The mesh obtained in the last subsection is therefore segmented into several patches in such a way that the sharp features are located on the boundaries of each patch. A contour parallel tool path can then be generated on each patch to effectively preserve the sharp features. In this subsection, the proposed mesh segmentation method, which uses a MST, is introduced. Herein, the following new concept is also introduced:
Definition 1 A quadrilateral mesh patch E_{i} is called a sharp height field (SHF) if it satisfies the following conditions:

1.
E_{i} is quadrilateral.

2.
There are no extraordinary points in E_{i}.

3.
The sharp features are located on the boundaries of E_{i}.
Starting from the generated quadrilateral mesh F described in the previous subsection, the goal here is to segment the mesh into SHFs and control the number of SHFs using techniques applied in graph theory:
where E_{i} is the SHF segmented from the given mesh.
In Definition 1, conditions 1 and 2 ensure that the SHF can be fitted using a Bspline surface. After segmentation, a tool path that satisfies the scallop height constraint on each SHF must be generated. During this process, the first and secondorder differential information of the workpiece surface must be known; however, it is difficult to obtain accurate differential information for the surface represented by a mesh. A Bspline surface is therefore used to fit the SHF after segmentation, for which conditions 1 and 2 were considered. Condition 3 preserves the sharp features of the workpiece during the processing.
The segmentation method consists of three steps (Fig. 3): first, the Kmeans clustering algorithm is used to remove the workpiece setup base of the mesh; second, a weighted graph of the mesh is constructed based on the location of extraordinary points and sharp features. The MST of the graph is then obtained to determine the optimal connection of the extraordinary points; third, the mesh is divided into several SHFs by determining the clipping edges according to a specific priority.
Removal of workpiece setup base
In real CNC machining, one can machine the base first and then use it for the machining setup to deal with the remaining parts. A setup base for the mesh must therefore first be chosen and removed. Meanwhile, removing the base can simplify the connection of extraordinary points (Eps, an interior vertex in a quadrilateral mesh which is shared by other than four faces), thus simplifying the subsequent segmentation process.
In general, the base should be as flat and large (in terms of area) as possible. Here, the Kmeans clustering algorithm is used to select a suitable base. First, the outer normal vector of each facet on the mesh is obtained, as shown in Fig. 4.
Subsequently, each normal vector is treated as a threedimensional data point, and the Kmeans clustering algorithm is used to classify such data points. The following objective function is then provided:
where S and Γ are the similarity and quantity of each dataset, respectively, and μ and γ are two weighting coefficients. Here, let μ = 0.7 and γ = 0.3. This objective function is used to obtain the optimal set of data points, as indicated by the black circle in Fig. 5. The optimal set of data points is mapped onto the workpiece, which is the setup base chosen in this study (with a onetoone correspondence between faces and their normal vectors). As shown in Fig. 6, the green part represents the setup base, which is removed from the mesh.
MST of extraordinary points
After removing the base, conditions 2 and 3 in Definition 1 are considered. For condition 3, which edges are sharp features must first be determined. Here, the angle between the normal vectors is used to determine whether the edge is a sharp feature: An edge with two adjacent quadrilateral facets is judged to be a sharp feature if the angle between the corresponding normal vectors of the two facets is greater than a given degree θ (in this study, let θ = 50^{∘}). In Fig. 7a, the blue lines represent sharp features of the Fandisk model.
For condition 2, the EPs should be located at the boundaries of each SHF; therefore, all connection edges between extraordinary points are considered, as shown in Fig. 7b. In this way, the initial segmentation problem can be regarded as a papercut problem with EPs and sharp features on the clipping edges. Which mesh edges are clipping edges must be determined such that Eq. (3) is satisfied. Owing to condition 2, some connection edges of the EPs belong to the clipping edges. The connection relations of the EPs directly determine the number of SHFs; hence, the connections of the EPs must be controlled and connected together.
First, the connected weighted graphs of the EPs are established. In Fig. 7b, all connection edges naturally form a connected graph. According to condition 3, all sharp features belong to the clipping edges, and thus the sharp features that do not belong to the connection edge of the EPs (called priori sharp edges) are in a sense equivalent to the boundary of the mesh, as shown by the red lines in Fig. 8. Hence, the unnecessary connection edges of the EPs that intersect the priori sharp edges should be removed. Subsequently, the weighted graph on the mesh is defined.
Two types of vertices are given in the weighted graph, i.e., an EP vertex (red dots in Fig. 9) and an auxiliary vertex (red stars in Fig. 9). The EP vertex corresponds to the extraordinary points, and the auxiliary vertex is formed by the intersection of the two connection edges of the EPs. The remaining connection edges between the EPs form the edges of the weighted graph.
The weight of each edge is then obtained. There are three types of edges: auxiliary, nonfull degree of freedom (NF), and standard. The connecting edge of the two auxiliary points is called the auxiliary edge (black line in Fig. 9a). Choosing this type of edge as the clipping edge often increases the number of SHFs in the segmentation problem. Thus, the weight of the auxiliary edge will be set to a large number. The definition of NF edge is as follows: When the two endpoints of edge α are EPs A and B, the four edges adjacent to edge α at the EPs have at least one edge that does not belong to the weighted graph (the black dotted line in Fig. 10a), and α is then called an NF edge. Choosing an NF edge as a clipping edge often decreases the number of SHFs in the segmentation problem. As shown in Fig. 10b, if an NF edge is chosen as a clipping edge, the number of SHFs can be reduced to two, unlike with other clipping edges. Thus, smaller weights are given to this type of edge. In addition to the two types of edges mentioned above, the remaining edges in the graph are called a standard edge. The weights of these edges are as follows:
where Ξ is the set of boundaries of the quadrilateral facets that belong to the edge of a connected graph, length_{i} is the length of the boundary of a quadrilateral facet, SC_{i} is the coefficient of the sharp features, NC is the NF edge coefficient (set to 0.1), and AC is the auxiliary edge coefficient (set to 1000).
Because some redundant connection edges of the EPs are removed, there may be multiple connected weighted graphs on the mesh (for example, a single extraordinary point can be regarded as a degenerate weighted graph). The MST for each graph is determined to obtain the optimal connection relation between the EPs. Herein, the Kruskal greedy algorithm [55] is adopted to obtain the MST, as shown in Fig. 9b.
Remaining clipping edges
After obtaining the MST, the clipping edges on the mesh must be determined to obtain the SHFs. The clipping edges are set sequentially according to the following priorities: (1) MST of each weighted graph, (2) sharp feature edges and mesh boundaries, (3) NF edges, (4) extended edges of the sharp features, and (5) redundant connected edges for EPs.
These edges are set as clipping edges in order. Priorities 1–3 have been defined. As for priority 4, when the first three items are set as clipping edges, the entire mesh is insufficient to divide into several patches, as shown in Fig. 11a. Therefore, sharp features that do not intersect other clipping edges must be selected and extended forward until they meet other clipping edges (black curves in Fig. 11b), which is priority 4. The mesh can therefore be segmented into several patches.
For priority 5, the redundant (nonclipping edge) connecting edges of the EPs must be set as clipping edges to satisfy condition 1 in Definition 1. A clipping edge is thus set for every other connecting edge of the EPs, as shown in Fig. 12a. They are extended forward until they meet the other clipping edges (purple curves in Fig. 11c). Subsequently, the entire optimal segmentation algorithm is completed. Figures 12bd show the results of the Fandisk model.
Tool path planning with certified scallop height
In this subsection, a tool path generation method for each SHF is presented. To ensure the machining quality and effectively preserve the sharp features, a contour parallel tool path that strictly satisfies the scallop height constraint is chosen. During this process, although the first and secondorder differential information of the workpiece surface must be known, it is difficult to obtain accurate differential information for surfaces represented by a mesh. Therefore, a Bspline surface is used to fit the SHFs after segmentation prior to the toolpath generation.
Given a set of initial control meshes (the SHFs are used as the initial control mesh) and a target triangle mesh (generated denoised mesh described in MeshTGV section), the surface should be fit using a Bspline surface. Simultaneously, the result must ensure that C^{0} is continuous at the boundary of the SHFs. In this study, uniform bicubic Bspline surfaces are used to fit the mesh because the topological structure of each SHF is simple.
Random points P are obtained from the triangle mesh during every iteration, and the error between the point cloud and the Bspline surface should be minimized. First, the asrigidaspossible method proposed in ref. [56] is used to parameterize the point cloud P. Instead of using the Cartesian distance, the featuresensitive metric in ref. [57] is applied. This metric is defined in the position and normal spaces in R^{6}, which is more sensitive to surface changes. A local quadratic approximation of the squared distance method (SDM), is then used, as proposed in ref. [58]. During each iteration, the following energy function is optimized:
where e_{k} is the SDM error term, and F_{1} is the thin planar energy. Because each part term is quadratic, the optimization problem can be transformed into the solution of a system of linear equations. The optimization problem is then solved iteratively until the error between the triangle mesh and spline surface becomes less than the threshold. Finally, the fitted Bspline surfaces are obtained, as shown in Fig. 13.
Subsequently, a tool path is generated on each fitting surface. First, a grid that satisfies the scallop height constraint on the rectangular parameter plane is provided. Before generating a grid, the path interval must be calculated according to the scallop height constraint. Scallops are created on the machined surface when the cutter moves along the tool path. The distance between paths is the cutter contact (CC) path interval, as shown in Fig. 14. The calculation of the path interval is associated with the convexity of the surface. In this study, a ballend cutter is used to machine the surface, and the CC path interval then depends on the local radius of normal curvature R of the surface, the feedrate direction, the radius r of the cutter, and the scallop height h remaining on the surface. In general, the scallop height h is much smaller than radius r of the cutter; hence, the calculation of the path interval can be simplified. Through machining using a ballend cutter, the tool path interval for different surfaces can be estimated from the following equations [59]:
When the path interval l_{i} is obtained, it can be mapped back to the parameter domain using the following two formulas, and the distance of adjacent CC points in the parameter plane can be obtained [37]:
Here, E, F, and G are the first fundamental parameters of the surface, and u is the parameter of the current toolpath curve.
Subsequently, with the scallop height constraint satisfied, Algorithm 1 is used to generate the grid, as shown below:
More specifically, k sample points are taken from the lowest boundary of the perimeter plane, that is, the parametric line t = 0. For each sample point, the offset interval ∆t is calculated in the t direction with a given upper limit of the scallop height hm, as shown in Fig. 15a. Subsequently, the minimum is selected and defined as ∆t_{0} to obtain the parametric line t = ∆t_{0}, as shown in Fig. 15b. The same process is repeated on the parametric line s = 0, and the minimum interval ∆s_{0} is obtained. Next, whether the scallop height between intersection point lc_{1} of the two parametric lines and the origin point is less than h_{m} is considered. If the scallop height constraint is not satisfied, ∆s_{0} is further reduced to make the scallop height between the two points equal to hm according to Eq. (5), as shown in Fig. 15c. Next, the above process is repeated on parametric lines t = 1 and s = 1, and the corresponding offset intervals are obtained with the scallop height constraint (Fig. 15d). Finally, the parametric lines are offset in the same order until the entire parameter plane is filled (Fig. 15e).
In this manner, any two adjacent points on the grid satisfy the scallop height constraint. As a result, two series of isoparametric lines are defined as follows:
After obtaining the grid, a cluster of contours can be naturally generated as the tool path of the surface (for example, the first contour is composed of four parametric lines: t = t_{0}, t = t_{N}, s = s_{0}, and s = s_{M}), as shown in Fig. 15f. Thus, a tool path for the surface is generated.
Finally, a grid with a scallop height constraint and corresponding contour parallel tool path for every SHF is generated, and the entire tool path planning algorithm is completed. Figure 16 shows the final results.
Results
In this section, the process of converting a point cloud into a workpiece is described. The entire framework contains three parts: mesh generation from geometric data, optimal surface segmentation for CNC, and tool path planning with the certified scallop height. The results demonstrate the validity of this framework.
The proposed surface segmentation and tool path generation methods were implemented in C++ on a desktop computer with 16 GB of RAM, a 3.50GHz Intel®Core™ i56600k CPU, and Windows 10. The official implementations of IGR, MeshTGV, and Quadriflow are used. For the given test point cloud, the framework can generate a contour parallel tool path that strictly satisfies the scallop height constraint and effectively preserves the sharp features. The scallop height is set to 0.16 mm.
Mesh generation from geometric data
The reconstruction results are shown in Fig. 17. For each model, the point cloud is sampled, and a triangle mesh is successfully generated while preserving the sharp features using IGR and MeshTGV. In addition, the triangle mesh is converted into a quadrilateral mesh using QuadriFlow.
Optimal surface segmentation for CNC
The segmentation results are shown in Fig. 18, and the proposed algorithm was tested on a quadrilateral mesh obtained in the previous section. First, a cluster algorithm is used to remove the workpiece setup base of the mesh and an MST is constructed based on the EPs. Finally, the mesh is divided into several SHFs by determining the clipping edges according to a specific priority. The results show that the proposed surface segmentation method is suitable for subtractive manufacturing and can control the number of segmented patches.
Tool path planning with certified scallop height
In this subsection, the contour parallel tool path results generated through the proposed method are presented. First, a grid on every SHF is generated, and a cluster of contours is then naturally obtained as the tool paths of the surface. The results show that the generated tool paths strictly satisfy the scallop height constraint and effectively preserve sharp features. Figures 19, 20 and 21 show the results.
Discussion
With the increasingly extensive application of point clouds in various industries, their manufacturing has become an interesting topic of interest in the manufacturing process. The proposed framework can directly generate a machining tool path with a confined scallop height. The proposed optimal segmentation method is the first technique that effectively preserves the sharp features of the workpieces during the machining.
Meanwhile, the proposed segmentation method can divide a mesh into SHFs and control the number of SHFs using graph theory techniques. However, proof that the proposed method can minimize the number of SHFS was not provided, which will be an area of future study.
Note that with the above tool path generation method, when the cutter processes the workpiece along contour parallel lines, it can be ensured that the machining scallop height is below the given value, hm. Although this toolpath planning algorithm is conservative (resulting in dense paths), it can ensure the quality in CNC machining.
Conclusions
In this study, a unified framework from point clouds to workpieces was proposed. An optimal segmentation method for subtractive manufacturing was also presented. To the best of the authors’ knowledge, this method is the first technique that effectively preserves the sharp features of workpieces during machining. In addition, the proposed method is easy to implement and can control the number of segmented patches. The contour parallel tool path is then generated using a parametric grid, which strictly satisfies the scallop height constraint. In summary, the proposed framework converts pointcloud data into a machinable tool path.
In a future study, the segmentation method will be improved to minimize the number of SHFs. Focus will be on the isoscallop height tool path generation method on each SHF to effectively shorten the length of the tool path.
Availability of data and materials
The IGR application is available at https://github.com/amosgropp/IGR. The MeshTGV application is available at https://github.com/LabZhengLiu/MeshTGV and Quadriflow is available at https://github.com/hjwdzh/QuadriFlow.
Abbreviations
 CNC:

Computer numerical control
 IGR:

Implicit geometric regularization
 TGV:

Total generalized variation
 ALM:

Augmented Lagrange method
 SHF:

Sharp height field
 MST:

Minimum spanning tree
 EP:

Extraordinary point
 NF edge:

Nonfull degree of freedom edge
 SDM:

Squared distance method
 CC:

Cutter contact
References
Peng YH, Yin ZW (2007) Direct tool path regeneration for physical object modification from digitized points in reverse engineering. Int J Adv Manuf Technol 33(11):12041211. https://doi.org/10.1007/s001700060562y
Makki M, Lartigue C, Tournier C, Thiébaut F (2008) Direct duplication of physical models in discrete 5axis machining. Virtual Phys Prototyp 3(2):93103. https://doi.org/10.1080/17452750802047941
Xu JT, Zhang L, Wang YJ (2014) Tool path generation for machining point cloud data by least squared projection. Appl Mech Mater 635637:555559. https://doi.org/10.4028/www.scientific.net/AMM.635637.555
Xu JT, Xu LK, Sun YW, Lee YS, Zhao JB (2019) A method of generating spiral tool path for direct threeaxis computer numerical control machining of measured cloud of point. J Comput Inf Sci Eng 19(4):041015. https://doi.org/10.1115/1.4043532
Dhanda M, Kukreja A, Pande SS (2021) Adaptive spiral tool path generation for computer numerical control machining using point cloud. Proc Inst Mech Eng, Part C J Mech Eng Sci 235(22):62406256. https://doi.org/10.1177/0954406221990077
Bernardini F, Mittleman J, Rushmeier H, Silva C, Taubin G (1999) The ballpivoting algorithm for surface reconstruction. IEEE Trans Vis Comput Graph 5(4):349359. https://doi.org/10.1109/2945.817351
Amenta N (1999) The crust algorithm for 3D surface reconstruction. Paper presented at the 15th annual symposium on computational geometry, ACM, Miami Beach, 1316 June 1999. https://doi.org/10.1145/304893.305002
Kazhdan M, Bolitho M, Hoppe H (2006) Poisson surface reconstruction. Paper presented at the fourth eurographics symposium on geometry processing, Eurographics Association, Cagliari.
Kazhdan M, Hoppe H (2013) Screened Poisson surface reconstruction. ACM Trans Graphics 32(3):29. https://doi.org/10.1145/2487228.2487237
Groueix T, Fisher M, Kim VG, Russell BC, Aubry M (2018) A papiermâché approach to learning 3D surface generation. Paper presented at the IEEE/CVF conference on computer vision and pattern recognition, IEEE, Salt Lake City, https://doi.org/10.1109/CVPR.2018.00030
Yang YQ, Feng C, Shen YR, Tian D (2018) FoldingNet: point cloud autoencoder via deep grid deformation. Paper presented at 2018 IEEE/CVF conference on computer vision and pattern recognition, IEEE, Salt Lake City. https://doi.org/10.1109/CVPR.2018.00029
Park JJ, Florence P, Straub J, Newcombe R, Lovegrove S (2019) DeepSDF: learning continuous signed distance functions for shape representation. Paper presented at 2019 IEEE/CVF conference on computer vision and pattern recognition, IEEE, Long Beach. https://doi.org/10.1109/CVPR.2019.00025
Gropp A, Yariv L, Haim N, Atzmon M, Lipman Y (2020) Implicit geometric regularization for learning shapes. Paper presented at the 37th international conference on machine learning, ACM, Vienna, 1318 July 2020.
Fleishman S, Drori I, CohenOr D (2003) Bilateral mesh denoising. ACM Trans Graph 22(3):950953. https://doi.org/10.1145/882262.882368
Zheng YY, Fu HB, Au OKC, Tai CL (2011) Bilateral normal filtering for mesh denoising. IEEE Trans Vis Comput Graph 17(10):15211530. https://doi.org/10.1109/TVCG.2010.264
Zhang HY, Wu CL, Zhang JY, Deng JS (2015) Variational mesh denoising using total variation and piecewise constant function space. IEEE Trans Vis Comput Graph 21(7):873886. https://doi.org/10.1109/TVCG.2015.2398432
Liu Z, Li YL, Wang WN, Liu LG, Chen RJ (2021) Mesh total generalized variation for denoising. IEEE Trans Vis Comput Graph. https://doi.org/10.1109/TVCG.2021.3088118
Luo LJ, Baran I, Rusinkiewicz S, Matusik W (2012) Chopper: partitioning models into 3Dprintable parts. ACM Trans Graph 31(6):129. https://doi.org/10.1145/2366145.2366148
Vanek J, Galicia JAG, Benes B, Měch R, Carr N, Stava O et al (2014) PackMerger: a 3D print volume optimizer. Comput Graph Forum 33(6):322332. https://doi.org/10.1111/cgf.12353
McCrae J, Singh K, Mitra NJ (2011) Slices: a shapeproxy based on planar sections. ACM Trans Graph 30(6):168. https://doi.org/10.1145/2024156.2024202
Hildebrand K, Bickel B, Alexa M (2012) Crdbrd: shape fabrication by sliding planar slices. Comput Graph Forum 31(2pt3):583592. https://doi.org/10.1111/j.14678659.2012.03037.x
Stava O, Vanek J, Benes B, Carr N, Měch R (2012) Stress relief: improving structural strength of 3D printable objects. ACM Trans Graph 31(4):48. https://doi.org/10.1145/2185520.2185544
MahdaviAmiri A, Yu FG, Zhao HS, Schulz A, Zhang H (2020) VDAC: volume decomposeandcarve for subtractive manufacturing. ACM Trans Graph 39(6):203. https://doi.org/10.1145/3414685.3417772
Herholz P, Matusik W, Alexa M (2015) Approximating freeform geometry with height fields for manufacturing. Comput Graph Forum 34(2):239251. https://doi.org/10.1111/cgf.12556
Zhao HS, Zhang H, Xin SQ, Deng YM, Tu CH, Wang WP et al (2018) DSCarver: decomposeandspiralcarve for subtractive manufacturing. ACM Trans Graph 37(4):137. https://doi.org/10.1145/3197517.3201338
Nuvoli S, Tola A, Muntoni A, Pietroni N, Gobbetti E, Scateni R (2021) Automatic surface segmentation for seamless fabrication using 4axis milling machines. Comput Graphics Forum 40(2):191203. https://doi.org/10.1111/cgf.142625
Marshall S, Griffiths JG (1994) A new cutterpath topology for milling machines. ComputAided Des 26(3):204214. https://doi.org/10.1016/00104485(94)900434
Sarma SE (1999) The crossing function and its application to zigzag tool paths. ComputAided Des 31(14):881890. https://doi.org/10.1016/S00104485(99)000755
Farouki RT, Tsai YF, Yuan GF (1999) Contour machining of freeform surfaces with realtime PH curve CNC interpolators. Comput Aided Geom Des 16(1):6176. https://doi.org/10.1016/S01678396(98)000326
Kim BH, Choi BK (2002) Machining efficiency comparison directionparallel tool path with contourparallel tool path. ComputAided Des 34(2):8995. https://doi.org/10.1016/S00104485(00)001391
Lee E (2003) Contour offset approach to spiral toolpath generation with constant scallop height. ComputAided Des 35(6):511518. https://doi.org/10.1016/S00104485(01)001853
Xu K, Li YG (2019) Region based fiveaxis tool path generation for freeform surface machining via image representation. Rob ComputIntegr Manuf 57:230240. https://doi.org/10.1016/j.rcim.2018.12.006
Liang FS, Kang CW, Lu ZY, Fang FZ (2021) Isoscallop tool path planning for triangular mesh surfaces in multiaxis machining. Rob ComputIntegr Manuf 72:102206. https://doi.org/10.1016/j.rcim.2021.102206
Anotaipaiboon W, Makhanov SS (2005) Tool path generation for fiveaxis NC machining using adaptive spacefilling curves. Int J Prod Res 43(8):16431665. https://doi.org/10.1080/00207540412331322948
Anotaipaiboon W, Makhanov SS (2008) Curvilinear spacefilling curves for fiveaxis machining. ComputAided Des 40(3):350367. https://doi.org/10.1016/j.cad.2007.11.007
Chen LF, Zhang R, Tang K, Hu PC, Zhao PY, Li ZY et al (2020) A spiralbased inspection path generation algorithm for efficient fiveaxis sweep scanning of freeform surfaces. ComputAided Des 124:102838. https://doi.org/10.1016/j.cad.2020.102838
Gan WF, Fu JZ, Shen HY, Chen ZY, Lin ZW (2014) Fiveaxis tool path generation in CNC machining of Tspline surfaces. ComputAided Des 52:5163. https://doi.org/10.1016/j.cad.2014.02.013
Sun YW, Xu JT, Jin CN, Guo DM (2016) Smooth tool path generation for 5axis machining of triangular mesh surface with nonzero genus. ComputAided Des 79:6074. https://doi.org/10.1016/j.cad.2016.06.001
Elber G, Cohen E (1994) Toolpath generation for freeform surface models. ComputAided Des 26(6):490496. https://doi.org/10.1016/00104485(94)900701
Loney GC, Ozsoy TM (1987) NC machining of free form surfaces. ComputAided Des 19(2):8590. https://doi.org/10.1016/S00104485(87)800507
Au CK (2001) A path interval generation algorithm in sculptured object machining. Int J Adv Manuf Technol 17(8):558561. https://doi.org/10.1007/s001700170138
Hu PC, Chen LF, Tang K (2017) Efficiencyoptimal isoplanar tool path generation for fiveaxis finishing machining of freeform surfaces. ComputAided Des 83:3350. https://doi.org/10.1016/j.cad.2016.10.001
Lee YS (1998) Nonisoparametric tool path planning by machining strip evaluation for 5axis sculptured surface machining. ComputAided Des 30(7):559570. https://doi.org/10.1016/S00104485(98)008227
Giri V, Bezbaruah D, Bubna P, Choudhury AR (2005) Selection of master cutter paths in sculptured surface machining by employing curvature principle. Int J Mach Tools Manuf 45(10):12021209. https://doi.org/10.1016/j.ijmachtools.2004.12.008
Chiou CJ, Lee YS (2002) A machining potential field approach to tool path generation for multiaxis sculptured surface machining. ComputAided Des 34(5):357371. https://doi.org/10.1016/S00104485(01)001026
Mansor MSA, Hinduja S, Owodunni OO (2006) Voronoi diagrambased tool path compensations for removing uncut material in pocket machining. ComputAided Des 38(3):194209. https://doi.org/10.1016/j.cad.2005.09.001
Zou Q, Zhang JY, Deng BL, Zhao JB (2014) Isolevel tool path planning for freeform surfaces. ComputAided Des 53:117125. https://doi.org/10.1016/j.cad.2014.04.006
Zhang K, Tang K (2014) An efficient greedy strategy for fiveaxis tool path generation on dense triangular mesh. Int J Adv Manuf Technol 74(9):15391550. https://doi.org/10.1007/s0017001460831
Liu X, Li YG, Ma SB, Lee CH (2015) A tool path generation method for freeform surface machining by introducing the tensor property of machining strip width. ComputAided Des 66:113. https://doi.org/10.1016/j.cad.2015.03.003
Huo GY, Jiang X, Su C, Lu ZH, Sun YW, Zheng ZM et al (2019) CNC tool path generation for freeform surface machining based on preferred feed direction field. Int J Precis Eng Manuf 20(5):777790. https://doi.org/10.1007/s12541019000842
Zou Q (2021) Lengthoptimal tool path planning for freeform surfaces with preferred feed directions based on poisson formulation. ComputAided Des 139:103072. https://doi.org/10.1016/j.cad.2021.103072
Huang JW, Zhou YC, Niessner M, Shewchuk JR, Guibas LJ (2018) QuadriFlow: a scalable and robust method for quadrangulation. Comput Graphics Forum 37(5):147160. https://doi.org/10.1111/cgf.13498
Zhang JY, Deng BL, Hong Y, Peng Y, Qin WJ, Liu LG (2019) Static/dynamic filtering for mesh geometry. IEEE Trans Vis Comput Graph 25(4):17741787. https://doi.org/10.1109/TVCG.2018.2816926
Jakob W, Tarini M, Panozzo D, SorkineHornung O (2015) Instant fieldaligned meshes. ACM Trans Graph 34(6):189. https://doi.org/10.1145/2816795.2818078
Kruskal JB (1956) On the shortest spanning subtree of a graph and the traveling salesman problem. Proc Amer Math Soc 7:4850. https://doi.org/10.1090/S00029939195600786867
Liu LG, Zhang L, Xu Y, Gotsman C, Gortler SJ (2008) A local/global approach to mesh parameterization. Comput Graphics Forum 27(5):14951504. https://doi.org/10.1111/j.14678659.2008.01290.x
Lai YK, Hu SM, Pottmann H (2006) Surface fitting based on a feature sensitive parametrization. ComputAided Des 38(7):800807. https://doi.org/10.1016/j.cad.2006.04.007
Pottmann H, Leopoldseder S, Hofer M (2002) Approximation with active Bspline curves and surfaces. Paper presented at the 10th pacific conference on computer graphics and applications, IEEE, Beijing, 911 October 2002. https://doi.org/10.1109/PCCGA.2002.1167835
Lin RS, Koren Y (1996) Efficient toolpath planning for machining freeform surfaces. J Manuf Sci Eng 118(1):2028. https://doi.org/10.1115/1.2803642
Acknowledgements
The authors thank the School of Mathematical Sciences of the University of the Chinese Academy of Sciences for their support.
Funding
This work was partially supported by the National Key Research and Development Program of China, No. 2020YFA0713703; the Beijing Natural Science Foundation, No. Z190004; National Natural Science Foundation of China, Nos. 11688101 and 61872332; and Fundamental Research Funds for the Central Universities.
Author information
Authors and Affiliations
Contributions
All authors conceived of the presented idea; MXW and YFF implemented the mesh generation method from geometric data; HYM provided the surface segmentation and tool path planning methods; LYS and CMY provided the requirement analysis and designed the entire framework, from point clouds to workpieces. All authors contributed to the interpretation of the results. All authors provided critical feedback and helped shape the research, analysis, and the manuscript. All authors have read and approved the final manuscript.
Corresponding authors
Ethics declarations
Competing interests
The authors declare that they have no competing interests.
Additional information
Publisher’s Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article's Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article's Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/.
About this article
Cite this article
Shen, LY., Wang, MX., Ma, HY. et al. A framework from point clouds to workpieces. Vis. Comput. Ind. Biomed. Art 5, 21 (2022). https://doi.org/10.1186/s42492022001170
Received:
Accepted:
Published:
DOI: https://doi.org/10.1186/s42492022001170
Keywords
 Computer numerical control
 Mesh reconstruction
 Mesh segmentation
 Path planning
 Scallop height