Abstract
Tool path generation is an important step for the machining of the free-form surfaces. The accuracy of machining free-form surfaces greatly depends upon the tool path. A number of algorithms had been proposed by different researchers for the accurate and efficient tool path generation for the machining of the free-form surfaces. The present study is focused on implementation of one of the algorithm that generates tool paths for free-form surfaces based on the accuracy of a desired manufactured part. This algorithm includes two components. First is the forward-step function that determines the maximum distance between two cutter contact points with a given tolerance. The second component is the side-step function which determines the maximum distance between two adjacent tool paths with a given scallop height. These functions are independent of the surface type and are applicable to all continuous parametric surfaces that are twice differentiable. This algorithm reduces cutter contact (CC) points while keeping the given tolerance and scallop height in the tool paths. The algorithm is implemented using the B-spline surface. It is then used to machine a wax component which is compared with the desired surface.
Access provided by Autonomous University of Puebla. Download conference paper PDF
Similar content being viewed by others
Keywords
1 Introduction
The surfaces that are not regular in their shape and are made by joining different patches together by defining some continuity at points of joining are called the free-form surfaces. Free-form surfaces are usually designed to meet or improve an aesthetic and/or functional requirement. Often, they are defined as surfaces containing one or more non-planar, non-quadratic surfaces generally represented by parametric and/or tessellated models free-form surface, or free-form surfacing, is used in CAD and other computer graphics software to describe the skin of a 3-D geometric element. Free-form surfaces do not have radial dimensions, unlike regular surfaces such as cylinders, cones and spheres. They are used to describe forms such as turbine blades, car bodies and boat hulls. Initially developed for the automotive and aerospace industries, free-form surfacing is now widely used in all engineering design disciplines from consumer goods products to ships.
These days CNC machines are mostly used for accurate machining of parts. The codes used on CNC machines are capable of machining only regular profiles. The free-form profiles cannot be machined using available preparatory codes on the CNC machines. Many researchers have worked on different algorithms to machine free-form surfaces on CNC machines. Some of the researchers have used parametric curves and surfaces for the development of their algorithms, given in the first part of the review.
Barnhill (1985) focused on the representation and design of surfaces in a computer graphics environment. The subject was approached from two points of view: The design of surfaces which included the interactive modification of geometric information and the representation of surfaces for which the geometric information was relatively fixed. Design takes place in 3-D space, whereas representation can be higher dimensional. Triangular patches were used to interpolate and approximate the arbitrarily located data and required the preprocessing steps of triangulation and derivative estimation. Chen and Shi (2008) presented a new method for tool path generation which was based on approximating free-form surfaces by triangular meshes. The vertices of triangular meshes were offset along surface normal. All offset vertices were then connected together to form offset triangular meshes sliced by a group of planes to obtain tool paths.
Ma and Peng (1995) presented a unified method for smoothing free-form surfaces with Bezier patches. A non-smooth surface consisting of bicubic patches was turned into a G1 surface. Using this method, solid objects bounded with bicubic Bezier patches were G1 smoothed with bicubic patches. Ge et al. (1997) presented a special class of rational Bezier curves that correspond to low-harmonic trajectory patterns. For given high-speed machinery, a significant source of the internally induced vibrational excitation was the presence of high-frequency harmonics in the trajectories that the system was forced to follow. Choi et al. (2007) presented the tool path generation method for multi-axis machining of free-form surfaces using Bezier curves and surfaces.
Konno and Chiyokura (1996) proposed a surface representation that enables the smooth interpolation of an irregular curve mesh with NURBS curves and surfaces. Designers required a means of designing complex free-form surfaces easily and intuitively. Nasri (1997) described an algorithm to generate recursive subdivision surfaces that interpolate B-spline curves. The control polygon of each curve is defined by a path of vertices of the polyhedral network describing the surface. Lartiguea et al. (2001) presented an accurate and efficient method to generate a tool path for a smooth free-form surface using planar cubic B-spline. A three-axis CNC machine tool with a ball-end mill cutter was used. The break points were generated by computing the offset surface driving plane intersection curve reflecting the curvature by a planar cubic B-spline curve. Maximum scallop height was calculated by computing the stationary points of the distance function between the scallop curve and the design surface. Narayanaswami and Pang (2003) investigated the applicability of multi-resolution analysis using B-spline wavelets to NC machining of contoured 2-D objects. A complex curve was decomposed using wavelet theory into lower-resolution curves. The low-resolution (coarse) curves were similar to rough-cuts and high-resolution (fine) curves to finish cuts in NC machining.
Huang and Oliver (1994) presented an algorithm for three-axis NC tool path generation on sculptured surfaces. Non-constant parameter tool contact curves were defined on the part by intersecting parallel planes with the part model surface. Wang (1996) presented a method to calculate intersection curves of offsets of two parametric surfaces. The method was based on the concept of normal projection. Lin and Koren (1996) presented an analytical method for planning an efficient tool path in machining free-form surfaces on 3-axis milling machines. The approach used a non-constant offset of the previous tool path which guaranteed that the cutter moving in an un-machined area of the part surface and without redundant machining. Ding et al. (2003) presented an algorithm that overcomes the disadvantage of iso-planar method while keeping its advantage of robustness and simplicity. The isophote concept was used for the partition of different regions of the surface. As compared with the conventional iso-planar tool path generation algorithm, the presented algorithm improved machining efficiency by reducing total tool path length needed to machine a free-form surface. Wei and Lin (2005) established a systematic general analytical method for CNC machining of the free-form surfaces and developed the postprocessor to obtain the NC code. Choi and Banerjee (2006) focused on generating tool path for free-form surfaces based on accuracy of desired manufactured part. The mathematical curves and surfaces used to represent a specific manufactured part were used to generate near optimal tool paths and cutter location files.
The second part of the review is based on algorithms given by researchers using some miscellaneous techniques.
Loney and Ozsoy (1987) discussed the development of an interactive computer-aided design and manufacturing system used in defining and machining of free-form surfaces. The system used a menu-driven front end with graphical feedback to guide a user through curve and free-form surface definition resulting in a mathematical model which was used to generate NC machine cutter location source file. Choi et al. (1988) presented a method for modelling and machining compound surfaces commonly found in die cavities and punches. A constructive solid geometry scheme was employed to model a compound surface that consists of planar surface elements, general quadratic surface elements and composite parametric surfaces. Suh and Lee (1990) presented a procedure to machine a pocket with a convex or concave free surface bounded by lines, circular arcs and free curves. The cutter location data were computed directly with better computational efficiency than normal, without using an iterative method. Leon and Trompette (1995) described a method to provide deformation methods involving simultaneous movements of control vertices. Deformation of free-form surfaces encounters difficulties because more than one control point must be moved to achieve satisfying results. The method used an analogy between the control polyhedron of a surface and the mechanical equilibrium of a bar network. Surface deformation was then carried out through changes of mechanical parameters. Yang and Han (1999) presented a systematic tool path generation methodology which incorporates interference detection and optimal tool selection for machining free-form surfaces on 3-axis CNC machines using ball-end cutters. Feng and Li (2002) presented a new approach for determination of efficient tool paths in the machining of sculptured surfaces using three-axis ball-end milling. The objective was to keep the scallop height constant across the machined surface so that the redundant tool paths were reduced. Yin (2004) proposed progressive fitting and multi-resolution tool path generating techniques, by which multi-level models fitting for different subsets of sampled points were obtained, and then multi-resolution rough-cut and finish-cut tool paths were generated based on the models.
Pham (1992), Dragomatz and Mann (1997), Lo (1998), Maekawa (1999) and Lasemi et al. (2010) provided a state-of-the-art review on research development in CNC machining of free-form surfaces.
As per the literature review, a large number of algorithms represent the free-form surface in the form of Bezier and B-spline surface. One such algorithm given by Choi et al. (2007) uses the Bezier surface for representing the free-form surface. This algorithm generates tool path based on the accuracy of a desired manufactured part. The purpose of the study is to implement the algorithm given by Choi et al. (2007) using the B-spline surface representation.
2 Mathematical Formulation
2.1 B-Spline Curve and Surface
The main advantage of B-Spline over Bezier is that it provides local control, which means that if we change the location of one point it cannot change the shape of whole curve, it will only effect the area of the curve corresponding to that point. The mathematical representation of the B-Spline curve (Ibrahim 2010) is given by (1).
where, \( n + 1 \) are the number of control points, N k i is the B-Spline function, \( k \) is the parameter which defines the degree of the curve.
The B-spline function is given by,
In (2) and (3), t i are the knot values given by
with \( 0 \le i \le n + k,{\text{ and }}u_{ \hbox{max} } = n - k + 2. \)
The mathematical representation of B-Spline surface is the extension of (1), given by (4)
where, \( n + 1 {\text{ and }}m + 1 \) are the number of control points in u and v directions, respectively, \( k \) and l are the parameters to define the degree of the surface in the u and v directions, respectively, \( N_{i}^{k}\, {\text{and }}N_{j}^{l} \) are the B-Spline functions, \( u_{ \hbox{max} } = n - k + 2 {\text{ and }}v_{ \hbox{max} } = m - l + 2. \)
2.2 First and Second Fundamental Form of a Surface
Given an embedded curve \( p\left( {u\left( t \right), v\left( t \right)} \right), \) the quadratic form
is known as the first fundamental form with t as the independent variable along the path and,
These are the coefficients of the first fundamental form, and \( p^{u}\; {\text{and}}\;p^{v} \) are the partial derivatives along the \( u\;{\text{and}}\; v \) direction at point p on the surface.
The quadratic,
is referred as second fundamental form where,
are the coefficients of the second fundamental form.
3 Proposed Approach
The accuracy of the machined surface depends greatly on the tool path. In order to have good accuracy, the tool path generation should be accurate and proper. In tool path generation, the main job is to calculate the cutter location points by specifying forward step and side step, the basic movements of the tool to reach the next cutter location point.
3.1 Cutter Contact and Cutter Location Point
The cutter location (CL) point is a reference point on the cutter, with which the machine tool moves linearly along the tool path. The cutter contact (CC) point is the point on the cutter that touches the work piece surface. Ideally, it is desired that the CC point lies on the work piece surface and is an addressable point which is a point along the axis at which the tool can be placed so as to minimize the manufacturing error. The CC and CL points are shown in Fig. 1. The surface normal n at an arbitrary point p(u, v) on the surface is expressed as:
where \( p^{u}\, {\text{and }}p^{v} \) are the partial derivatives along \( u\;{\text{and}}\;v \) direction at a point p on the surface.
3.2 Calculation of Forward Step
Each tool path is approximated by a series of line segments. The accuracy of tool path is controlled by deviation. Each segment amounts is a forward step and the maximum deviation is called tolerance. To calculate forward step, first and second derivatives are used. Therefore, this function is independent of the surface type and is applicable to all continuous parametric surfaces that are twice differentiable. The mathematical formula for forward step is derived from iso-parametric curve on the surface given in Choi et al. (2007).
The forward-step size, s, is calculated using Eq. (5)
where, e is the given tolerance and k 2 be the maximum second derivative of current curve.
3.3 Calculation of Side Step
The side step, g, is a function of the scallop height h, tool-radius r, and the local radius of the curvature, R. The designed part’s surface can be classified into convex, concave and flat surface. The curvatures of convex, concave and flat surfaces are positive, negative and zero, respectively. Therefore, these three different cases are considered to calculate side-step size.
For a flat surface, shown in Fig. 2, the scallop height h is given by (6)
where r the radius of the tool and g is the side step. The value of the side step is given by (7).
Secondly, a convex curvature shown in Fig. 3 is considered. To find the side step for a convex surface, the difference between a designed curve and a linear tool path, δ, is found.
From Fig. 3, \( \delta = {\text{ OB}} - {\text{OA}} . \)
To find OA, we first calculate step size, g, using (7). As the step size is very small, we can use p = g/2 as the initial value. From the Fig. 3.
So the scallop height h and side step g is given by (8) and (9), respectively,
In the similar manner, we can calculate the side step for a concave surface, as shown in Fig. 4.
From Fig. 4,
where R is the local radius of the curvature of the surface.
The scallop height, h, and side step, g, for a concave curvature are given by (10) and (11), respectively,
Hence, the value of side step can be calculated for any type of the surface using the discussed equations.
4 Implementation and Results
To verify the algorithm, the cutter contact points are generated for a surface. The surface is then machined over a wax part using a 3-axis milling machine. After machining, the surface is compared with the desired one.
The proposed algorithm as discussed in the previous section for the generation of tool path is coded in MATLAB. The bicubic B-spline surface is defined by 4 × 4 control matrix, i.e.,
The B-spline surface generated by coding its algorithm in MATLAB is shown in Fig. 5.
4.1 Generation of Cutter Contact Points
The forward and side steps are calculated as per the equations discussed in previous section. The x, y and z coordinates of all the cutter contact points are stored to generate the CNC program. The generated cutter contact points on B-spline surface are shown in Fig. 6.
4.2 Modelling of Desired Surface from Generated Points
The cutter contact points generated in MATLAB are used to model the desired surface in RHINOCEROS 4.0, a surface modelling software. Figure 7 shows the generated B-spline surfaces.
4.3 Machining
The CNC program is generated using calculated cutter contact points using word address manual part programming (Koren 2010). The program is simulated on a vertical milling centre shown in Fig. 8. The written code is transferred on to the milling centre by using a flash card.
The wax piece is used to machine the generated surface on the milling machine. The machining is done using a ball-end milling tool of 4 mm diameter with speed of 200 rpm, feed of 800 mm/min and coolant in mild flow. The work piece and the tool setup are shown in Fig. 9.
After machining the wax piece using the CNC machine, the generated B-spline surface is shown in Fig. 10.
Thereafter, the coordinate measuring machine (CMM) with point probe is used to make a point cloud of the machined B-spline surface. This point cloud is used to model the surface in RHINOCEROS 4.0. The surfaces generated from the point cloud of machined B-spline surface are shown in Fig. 11.
4.4 Comparison of Desired and Machined Surface
To check the accuracy of the machined surface, the desired and the machined surfaces are overlapped to observe the regions of the surfaces which are merging within one another. Thin overlapping will clearly show the difference between machined surface and desired surface. The surfaces are shown in different colours to make a more effective view. In the Fig. 12, the green and blue colour shows the desired and the machined surface, respectively. It can be seen from the figure that the two surfaces overlap each other.
4.5 Comparison on Scallop Height Basis
The comparison between desired surface and machined surface is also done by measuring the scallop height of the machined surface. The scallop height of the machined surface should be within range of the assumed scallop height. The assumed minimum and maximum scallop heights are 0.254 and 1.27 mm, respectively. Table 1 shows the maximum scallop height of machined B-spline surface, number of cutter location points and average scallop height of the machined B-spline surface for assumed scallop height.
Thus, the Table 1 shows that the maximum scallop height and average scallop height of the machined surface lie within the limits of the assumed scallop height for B-spline surface. In case of B-spline surface, the number of cutter location points corresponding to 0.254 mm is 130. If the scallop height is increased to 1.27 mm, the number of cutter location points reduces to 40.
5 Conclusion
The algorithm using the B-spline surface is implemented successfully through the integration of mathematical modelling used for calculating the forward-step and side-step size into the core of the algorithm. As the algorithm is successfully implemented using B-spline surface, the algorithm is applicable to the continuous parametric surfaces that are twice differentiable. Therefore, it can be used for machining of sculptured and analytic surfaces.
Thereafter, the verification of machining errors is done by comparing the desired and the machined surface.
The present work is being further extended by developing a canned cycle that can be used directly by the part programmer on a CNC machine for free-form surfaces.
References
Barnhill RE (1985) Surfaces in computer aided geometric design: a survey with new results. Comput Aided Geom Des 2(1):1–17
Chen T, Shi Z (2008) A tool path generation strategy for three-axis ball-end milling of free-form surfaces. J Mater Process Technol 208:259–263
Choi YK, Banerjee A (2006) Tool path generation and tolerance analysis for free-form surfaces. Int J Mach Tools Manuf 47(3–4):689–696
Choi BK, Lee CS, Hwang JS, Jun CS (1988) Compound surface modeling and machining. Comput Aided Des 20(3):127–136
Choi YK, Banerjee A, Lee W (2007) Tool path generation for free form surfaces using Bezier curves/surfaces. Comput Ind Eng 52:486–501
Ding S, Mannon MA, Poo AN, Yang DCH, Han Z (2003) Adaptive iso planar tool path generation for machining of free form surfaces. Comput Aided Des 35:141–153
Dragomatz D, Mann S (1997) A classified bibliography of literature on NC milling path Generation. Comput Aided Des 29(3):239–247
Feng HY, Li H (2002) Constant scallop height tool path generation for three axis sculptured surface machining. Comput Aided Des 34:647–654
Ge QJ, Srinivasan L, Rastegar J (1997) Low-harmonic rational Bezier curves for trajectory generation of high-speed machinery. Comput Aided Geom Des 14:251–271
Huang Y, Oliver J (1994) Non-constant parameter NC tool path generation on sculptured surfaces. Int J Adv Manuf Technol 9(2):281–290
Ibrahim Z (2010) Introduction to CAD/CAM. Tata McGraw Hill, New Delhi
Konno K, Chiyokura H (1996) An approach of designing and controlling free-form surfaces by using NURBS boundary Gregory patches. Computr Aided Geom Des 13:825–849
Koren Y (2010) Numerical Control of Machine Tools. Tata McGraw Hill, New Delhi
Lartiguea C, Thiebauta F, Maekawa T (2001) CNC tool path in terms of B-spline curves. Comput Aided Des 33:307–319
Lasemi A, Deyi X, Peihua G (2010) Recent development in CNC machining of freeform surfaces: a state-of-the-art review. Comput Aided Des 42:641–654
Leon JC, Trompette P (1995) A new approach towards free-form surfaces control. Comput Aided Geom Des 12:395–416
Lin R, Koren Y (1996) Efficient tool-path planning for machining free-from surfaces. Trans ASME 118:20–28
Lo C (1998) A new approach to CNC tool path generation. Comput Aided Des 30(8):649–655
Loney GC, Ozsoy TM (1987) Machining of free form surface. Comput Aided Des 19(2):85–89
Ma L, Peng Q (1995) Smoothing of free-form surfaces with Bezier patches. Comput Aided Geom Des 12:231–249
Maekawa T (1999) An overview of offset curves and surfaces. Comput Aided Des 31:165–173
Narayanaswami R, Pang J (2003) Multiresolution analysis as an approach for tool path planning in NC machining. Comput Aided Des 35:167–178
Nasri A (1997) Curve interpolation in recursively generated B-spline surfaces over arbitrary topology. Comput Aided Geom Des 14:13–30
Pham B (1992) Offset curves and surfaces: a brief survey. Comput Aided Des 24(4):223–229
Suh YS, Lee K (1990) NC milling tool-path generation for arbitrary pockets defined by sculptured surfaces. Comput Aided Des 22(5):273–283
Wang Y (1996) Intersection of offsets of parametric surfaces. Comput Aided Geom Des 13:453–465
Wei E, Lin MC (2005) Study on general analytical method for CNC machining the free-form surfaces. J Mater Process Technol 168:408–413
Yang DCH, Han Z (1999) Interference detection and optimal tool selection in 3-axis NC machining of free-form surfaces. Comput Aided Des 31:303–315
Yin Z (2004) Rough and finish tool-path generation for NC machining of freeform surfaces based on a multiresolution method. Comput Aided Des 36:1219–1231
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2014 Springer India
About this paper
Cite this paper
Randhawa, S.S., Saini, J.S. (2014). Tool Path Generation for Free-Form Surfaces Using B-Spline Surface. In: Khangura, S., Singh, P., Singh, H., Brar, G. (eds) Proceedings of the International Conference on Research and Innovations in Mechanical Engineering. Lecture Notes in Mechanical Engineering. Springer, New Delhi. https://doi.org/10.1007/978-81-322-1859-3_6
Download citation
DOI: https://doi.org/10.1007/978-81-322-1859-3_6
Published:
Publisher Name: Springer, New Delhi
Print ISBN: 978-81-322-1858-6
Online ISBN: 978-81-322-1859-3
eBook Packages: EngineeringEngineering (R0)