Abstract
This paper proposes a new iso-parametric tool path generation scheme for trimmed parametric surface based on two discrete parameterization techniques, namely, the Partial Differential Equation method and the newly developed “Boundary Interpolation method”. The efficiency of the scheme is measured in terms of path length and computational time for machining some typical surfaces. The side-steps and forward-steps have been formulated to suit the discrete nature of the surface representation. Conventionally the forward-step is calculated by approximating the cutting curve with osculating circle. Due to this approximation there is a possibility that the tolerance can go beyond given limit. In this paper an improved tolerance constraint method has been presented to keep the tolerance in forward-step under given value by considering the true profile of the cutting curve. Case studies show that the method presented here significantly improves the path profile by maintaining the tolerance limit.
Similar content being viewed by others
1 Introduction
Free-form surfaces, also called sculptured surfaces, have been widely used in designing complex surfaces such as turbine blades, automobile bodies. In CAD/CAE environment free-form surfaces are machined in two stages, roughing and finishing. The major volume of the material is removed in the roughing stage using larger tools while the left over material is removed in the finishing stage.
Due to the inherent nature of the motion of the tool, tool paths are always a series of straight lines/arcs whereas the actual sculptured surface is a surface of varying slope and curvature. Thus, the free-form surface is approximated by a series of straight lines and arcs for machining, and the goal of machining is to get as close as possible to the design surface.
Several tool path generation methods have been developed by researchers over the years [1–11]; they include iso-parametric, iso-planer, iso-scallop, iso-phote, etc. Because of efficiency in calculation and better surface quality and aerodynamic effect (required in blades/vanes of turbines and pumps) iso-parametric method is widely used for free-form surface machining.
Loney and Ozsoy first addressed the iso-parametric method of tool path generation [12]. But they used the flat surface formula for calculating the path interval which was the potential source of inaccuracy [11]. The forward-steps were computed ignoring the overcut by the tool nose. Also the method was limited to algebraically parameterized surfaces. Elber and Cohen [1] introduced iso-parametric tool path planning for trimmed surfaces. But this method suffers from problem of large number of tool retractions which limits its suitability in practical applications. Moreover, this method produces some shorter tool paths and due to that the scallops after machining become too abruptly distributed. Thus, the characteristic streamline-like property of iso-parametric tool paths is lost. The current work is aimed to generate boundary-fitted streamline-like iso-parametric tool paths on a trimmed sculptured surface using 3-axis CNC milling by improving the maintenance of limiting tolerance of forward-step.
For a trimmed surface (Fig. 1), re-parameterization is required to generate iso-parametric tool path because the original parameterization fails to match the new boundary conditions of the trimmed surface. For the surfaces with complex boundaries algebraic parameterization cannot be applied due to some inherent problems [13]. In such conditions, re-parameterization can be done by two types of discrete parameterization techniques viz. Partial Differential Equation (PDE) method [14–19] and boundary interpolation method [13]. In this paper, these two parameterization methods have been used to generate parameterized surfaces and subsequently tool paths have been generated on these surfaces based on interpolated curves. The tolerance constraint forward-step method has been developed to ensure that the tolerances over the entire surface should not go beyond the given limit. After generating tool paths, the method has been examined with some typical cases and tolerances have been verified to show the accuracy of the present method.
2 Re-parameterization techniques
In the following sub-sections, re-parameterization techniques viz. Laplace PDE method and boundary interpolation method have been presented very briefly for ready reference. For further detail, readers may refer some of the relevant literatures that discussed these methods elaborately [13, 17–22].
2.1 PDE method
For two-dimensional surface, two elliptic partial differential equations [Eqs. (1) and (2)] are solved [17] with the independent variables (u, v) in the physical plane and the dependent variables (ξ, η) in the computational plane. The Laplace form of elliptic PDEs are:
After variable transformation [13, 20], Eqs. (1) and (2) takes the following elliptic form:
where
Solution of Eqs. (3), (4) and (5) produces boundary-fitted parameterized 2D surface. Figure 2 shows the result of PDE method applied on the surfaces with various boundary conditions (simple and irregular). For irregular boundaries the distribution of interpolated curves are very uneven and cause difficulties in tool path generation. Though Poisson equation by means of forcing functions can provide solution to this parameterization problem; however, it needs to be solved via trial and error processes [16–18, 21]. This limits its usage for parameterization purpose in CAD/CAE applications where automatic processes are essential.
2.2 Boundary interpolation method
Boundary interpolation method [13] can resolve the anomalies yielded by the PDE method. In this method the intermediate curves are generated by combining the linear and geometric vectors [13] at all the constituent data points of the two opposite boundary (or generating) curves. A technique of simultaneous displacement of the interpolated curves from the opposite boundaries has been adopted. The direction of displacement is from one of the curved boundaries to the other.
The interpolated curves are represented as functions of six geometric parameters,
Here, C 0(ξ) and \(\overline{C}_{0}\)(ξ) is a pair of opposite boundary curves or generating curves or parent curves, α j (ξ) and \(\overline{\alpha }\) j (ξ), d j (ξ) and \(\overline{d}\) j (ξ) are the displacement correction functions and displacement vectors of the curves C 0(ξ) and \(\overline{C}_{0}\)(ξ), respectively. The new sets of curves are generated by simultaneous interpolation from the two opposite boundary curves. This simultaneous displacement process continues till the entire surface is constructed. So the entire surface is treated as if it is divided into two halves.
Therefore, the basic algorithm is denoted as
where
Here D j (ξ) and R j (ξ) represent the displacement magnitude and the unit displacement direction of d j (ξ), respectively.
Let m (which is user defined) being the total number of curves including the boundaries, to be generated on the entire surface.
When m is odd,
When m is even,
where
β j is a blending function. α j (ξ) and \(\overline{\alpha }\) j (ξ) are the displacement correction functions of C j (ξ) and \(\overline{C}\) j (ξ), respectively.
Here θ ∈ [0,2π] is the included angle formed by a set of three consecutive data points of a curve [13]. The user-defined parameter γ (a real number) controls the characteristics of displacement correction function α j (ξ).
where weighted function
In Eq. (14), L j (ξ) and G j (ξ) represent the unit linear displacement vector and unit geometric vector, respectively [13].
Referring to Fig. 3, it may be observed that boundary interpolation method resolves the problem of uneven parametric distribution produced by PDE method.
3 Tool path generation
The iso-parametric tool paths are generated based on the iso-parametric curves produced by different parameterization methods discussed above. In the following sections the iso-parametric tool path generation technique will be formulated and tested with some cases.
3.1 Basic mathematics
For free-form surface, the locus of a point is described as a function of two independent variables or parameters. Therefore, the Cartesian coordinates (in physical domain) of a parametric (normalized) surface ‘S 0’ (Fig. 4) in terms of two parameters (u, v) can be given as below.
But as mentioned earlier, for a trimmed surface ‘S’ the original parameterization (on u, v) becomes invalid and so ‘S’ is re-parameterized onto a new unit square (computational domain) of two parameters ξ, η ∈ [0,1].
Let P(u, v) be a general point on iso-η curve B(u(ξ),v(ξ)) embedded on surface ‘S’. The first fundamental form [21–24] at P, in the orthogonal direction of curve B, on ‘S’ is defined as square of the differential arc length (quadratic form) and can be expressed as follows.
where E = P u × P u; F = P u × P v ; G = P v × P v and P u = \(\frac{\partial P}{\partial u}\); P v = \(\frac{\partial P}{\partial v}.\)
The second fundamental form [21–24] is given as the quadratic form
where L = P uu × n; M = P uv × n; N = P vv × n and P uu ; P uv ; P vv are the second-order partial derivatives of P(u, v) w.r.t. parameters u and v. n is the unit surface normal at P(u, v) and defined as
Using the above expressions the normal curvature k n is given [24] as
and, therefore, the radius of normal curvature is expressed as
3.2 Side-step or path interval
The maximum permissible distance between two adjacent tool paths along the direction orthogonal to the current tool path is defined as path interval or side-step (g) and it is the minima between two adjacent tool positions on the two adjacent tool paths. Therefore, with respect to the given tool position on a given tool path, the next tool position (for side-step) is the closest one on the next tool path. It implies that the two closest tool positions (points) lie on the geodesic path between those points and the radius of curvature of this geodesic curve (which is also the radius of normal curvature) is considered for side-step computation. Side-step is a function of scallop height h, tool radius r of ball-end mill and radius of normal curvature R n . g is calculated in physical space depending on the given limiting value of h for a surface and the values of r and R n .
Referring to Figs. 5, 6 and 7, the side-step g (AB) is calculated for the following three different profiles of surface.
-
(1)
For flat profile (Fig. 5), II = 0:
-
(2)
For convex profile (Fig. 6), II < 0:
Let φ be the half-angle subtended by R n to cover the arc length AB which is the side-step g.
Therefore,
From Fig. 6 and using Eq. (22), side-step
-
(3)
For concave profile (Fig. 7), II > 0:
Therefore,
From Fig. 7 and using Eq. (22), side-step
Now let the current tool path be P k in the direction ξ and the next tool path to be determined is P k+1.
Therefore,
and
Expanding P k+1 by Taylor series and neglecting the higher terms,
Substituting Eq. (30) in Eqs. (28) and (29) and using the coefficients of first fundamental form, we get
and
To determine the next iso-parametric tool path P k+1 the minimum of all the ∆v along the current tool path P k is taken into consideration to maintain the scallop height within given limit and then corresponding v k+1 is calculated.
Therefore,
In derivation of side-step, ∂u/∂η and ∂v/∂η are determined by linear interpolations as follows.
Let jth iso-η curve be the immediate next to kth tool path so that η k < η j . Therefore, at kth tool path the derivatives are expressed as,
3.3 Forward-step with tolerance constraint
To optimize the length of tool paths, it is essential to maximize the forward-step ‘s’ based on the specified tolerance ‘e’ (Fig. 8a). Conventionally, for linear interpolation, each tool path is approximated by a series of line segments called forward-step and the accuracy of this approximation is controlled by a specified deviation called tolerance [22, 23, 25]. Therefore, forward-step is the maximum linear distance between two cutter contact (CC) points on a tool path, with a given tolerance. Figure 8a shows the conventional representation of forward-step with linear interpolation where the portion of a tool path corresponding to forward-step is reasonably approximated by osculating circle [7, 22, 23].
In Fig. 8b, the actual profile of the embedded tool path has been taken into consideration. When the tool moves from one CC point to the next, the object surface gets overcut by the tool’s nose. Let, the tool moves from current CC point P l to the next CC point P l+1. On (k + 1)th tool path, \(\overline{P}\) is a point located between P l and P l+1 and T p is the unit tangent vector in the direction of the tool path at \(\overline{P}\). When T p is parallel to P c1 P c2 the deviational distance \(\overline{P}\) C becomes maximum. Therefore, for optimum condition (when forward-step length is maximum),
A search scheme is employed to find P l+1. By this scheme first a parametric point adjacent to P l on the tool path is taken as the next CC point and then the maximum deviational point \(\overline{P}\) (corresponding to ξ i ) is determined. The deviational distance (\(\overline{P}\) C) between T p and P c1 P c2 is then calculated. If this distance is equal to (e − r) ± ε (ε being a small magnitude of deviation over the specified tolerance) then that adjacent point is the desired CC point P l+1. If the deviational distance is greater than (e − r) + ε then the parametric interval between P l and P l+1 is decreased and on the other hand if the deviational distance is less than (e − r)–ε then the parametric interval between P l and P l+1 is increased by a small amount. The searching continues until the deviational distance converges to the desired tolerance. The mathematical derivation of the search scheme has been discussed below.
Let P c1 and P c2 be the tool centers, n 1 and n 2 are the surface normal corresponding to CC points P l and P l+1.
As T p is parallel to P c1 P c2, therefore,
where
and \(\mathop {\overline{P} }\limits^{ \bullet }\) is the partial derivative of the embedded parametric tool path w.r.t. ξ at point \(\overline{P}\) (corresponding to ξ i ).
Therefore,
To find u and v corresponding to ξ i a linear interpolation is applied between two discrete points at ξ l and ξ l+1 on the current tool path [i.e., (η k+1)th] such that ξ l ≤ ξ i ≤ ξ l+1.
Now using Eqs. (43) and (44), partial derivatives w.r.t. ξ in Eq. (42) are expressed as,
Equation (40) is solved with the help of Eqs. (41)–(46) to find the value of ξ i and corresponding value of \(\overline{P}\). The deviational distance from \(\overline{P}\) (at ξ i ) to P c1 P c2 can now easily be calculated and compared with the limiting value (e − r) ± ε to determine P l+1.
So after determination of the side-steps and forward-steps as above, the CC points are now completely defined for the entire surface. The CC points (P cc) thus calculated have to be converted to CL (cutter location) points P cl for input to the post-processor of CNC machine. For ball-end cutter the center of the ball-end is taken as CL point. Hence P cl is given as,
where n is the surface normal.
4 Examination of the algorithm with case studies
The applicability of tool path generation scheme presented in Sect. 3 has first been examined by means of two different methods of parameterization presented above and then the tolerance constraint forward-step algorithm has been tested on a typical surface.
The radius of ball-end cutter is 5 mm and both the scallop height and the specified tolerance of forward-steps are 0.5 mm. The deviation ε has been taken as 10 % of specified tolerance. The resultant CC paths have been shown in Fig. 9. Case-I has simple boundaries and all the two methods have successfully produced the tool paths, though boundary interpolation method have more evenly distributed one. In Case-II, the boundaries are irregular in shape. Due to this, the distribution of interpolated curves near the irregular boundaries is very uneven in case of Laplace PDE method and the tool paths generated become crowded near the irregularity of the boundaries. This problem of crowdedness of the tool paths is eased while boundary interpolation technique is applied on the same surfaces in Case-II. The evenness in distribution of tool paths determines the efficiency of machining in terms of tool path length (PL) and computational time (CT). Table 1 shows a comparison of efficiencies of machining for the two different parameterization methods for Case-I and II. MATLAB7 has been used for coding and plotting the results.
One more typical surface has been examined as shown in Fig. 10 where tool paths have been determined considering the conventional and the proposed forward-step methods. The side-steps for both the cases have been computed with the algorithm presented in Sect. 3.2 above. In both cases the 5th tool path (marked with dots on firm line) from the lower boundary have been taken into consideration to calculate the tolerances produced by these forward-steps computation techniques. Only boundary interpolation method has been used for re-parameterization. The specified limit of tolerance of forward-step is 0.5 mm ± 10 %. The tolerances calculated have been plotted in Fig. 11 where it is clearly visible that conventional forward-step method does not always keep the tolerances within the specified limits, but the proposed tolerance constraint forward-step method keeps the tolerances well within limit. A cutting simulation for the tool paths generated by MATLAB in Fig. 10b has been given in Fig. 12 using commercially available simulation software.
Besides plotting the results obtained by examining the 5th tool path in Fig. 10a, b, tolerances for the other tool paths in Fig. 10a have also been checked and found to be 0.586 mm at maximum and 0.422 mm at minimum whereas in Fig. 10b, the maximum tolerance is 0.542 mm and the minimum tolerance is 0.454 mm. Comparing these results with the specified limits of tolerance 0.5 mm ± 0.05 mm, it is evident that the conventional forward-step method does not ascertain to retain the tolerances within given limits but the proposed forward-step method does. The entire algorithm for the proposed method described above has been presented by the flowchart in Fig. 13.
5 Concluding remarks
In this work two different methods of discrete parameterization of trimmed free-form surface have been used for re-parameterization. They are Laplace PDE method and boundary interpolation method. Re-parameterization is necessary for trimmed surfaces because the original parameterization becomes invalid. By the process of re-parameterization a number of iso-parametric curves are produced to cover up the entire surface. Based on these iso-parametric curves side-steps are calculated considering convex and concave profile of the surface besides flat region. While calculating forward-steps the exact profile of the surface and overcut due to tool’s nose have been taken into account to get a better computational accuracy and maintenance of tolerance. Complete algorithm has been developed and implemented on some cases. Case studies show that the tolerance constraint forward-step calculation presented here can give better limits of tolerance than the conventional forward-step method. Additionally, from the results of the examination of cases it is noted that because more uniform distribution of iso-parametric curves is given by the BI method than the PDE method, the proposed tool path generation algorithm produces shorter path length with lesser computational time for BI method.
References
Elber G, Cohen E (1994) Toolpath generation for freeform surface models. Comput Aided Des 26(6):490–496
Suresh K, Yang D (1994) Constant scallop-height machining of free-form surfaces. ASME J Eng Ind 116(2):253–259
Ding S, Yang DCH, Han Z (2005) Boundary-conformed machining of turbine blades. Proc IMechE Part B J Eng Manuf 219(3):255–263
George KK, Babu NR (1995) On the effective tool path planning algorithms for sculptured surface manufacture. Comput Ind Eng 28(4):823–836
Huang Y, Oliver JH (1994) Non-constant parameter NC tool path generation on sculptured surfaces. Int J Adv Manuf Technol 9(5):281–290
Li CL (2007) A geometric approach to boundary-conformed tool path generation. Comput Aided Des 39(11):941–952
Li H, Feng HY (2002) Constant scallop-height tool path generation for three axis sculpture surface machining. Comput Aided Des 34(9):647–654
Loney GC, Ozsoy TM (1987) NC machining of free form surfaces. Comput Aided Des 19(2):85–90
Zhang LP, Nee AYC, Fuh JYH (2004) An efficient cutter contact curve tool path regeneration algorithm for sculptured surface machining. Proc IMechE Part B J Eng Manuf 218(4):389–402
Sarkar S, Dey PP (2013) Tool path generation for algebraically parameterized surface. J Intell Manuf. doi:10.1007/s10845-013-0799-x
Lin RS, Koren Y (1996) Efficient tool-path planning for machining free-form surfaces. J Eng Ind ASME Trans 118(1):20–28
Lasemi A, Xue D, Gu P (2010) Recent development in CNC machining of freeform surfaces: a state of the art review. Comput Aided Des 42(7):641–654
Sarkar S, Dey PP (2012) A new boundary interpolation technique for parameterization of planar surfaces with four arbitrary boundary curves. Proc IMechE Part C J Mech Eng Sci 227(6):1280–1290
Hsu K, Lee SL (1992) A numerical technique for two-dimensional grid generation with grid control at all of the boundaries. J Comput Phys 96(2):451–469
Westgaard G, Nowacki H (2001) Construction of fair surfaces over irregular meshes. ASME. J Comput Inf Sci Eng 1(4):376–384
Cebeci T, Shao JP, Kafyeke F, Laurendeau E (2005) Computational fluid dynamics for engineers. Horizons Publishing Inc., California
Thompson JF, Warsi ZUA, Mastin CW (1985) Numerical grid generation, foundations and applications. North Holland
Hoffmann KA, Chiang ST (1989) Computational fluid dynamics for engineers. Engineering Education System, USA
Vladimir DL (2010) Grid generation methods. Springer, New York
Marsh D (2005) Applied geometry for computer graphics and CAD. Springer, London
Yamaguchi F (1988) Curves and surfaces in computer aided geometric design. Springer, London
Sarkar S, Dey PP (2013) A new Iso-parametric machining algorithm for free-form surface. Proc IMechE Part E J Process Mech Eng. doi:10.1177/0954408913495191
Faux ID, Pratt MJ (1979) Computational geometry for design and manufacture. Ellis Horwood Limited, Chichester
Stoker JJ (1989) Differential geometry. Wiley-Interscience, New York
Hanta A, Grieve B (2000) Cartesian machining versus parametric machining: a comparative study. Int J Prod Res 38(13):3043–3065
Author information
Authors and Affiliations
Corresponding author
Rights and permissions
About this article
Cite this article
Sarkar, S., Dey, P.P. Tolerance constraint CNC tool path modeling for discretely parameterized trimmed surfaces. Engineering with Computers 31, 763–773 (2015). https://doi.org/10.1007/s00366-014-0388-4
Received:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s00366-014-0388-4