Cubic spline interpolations in CNC machining
A cubic spline polynomial is applied to control the machine tool movements defined by the spline. This paper is an attempt to implement cubic spline interpolation in computer numerical method (CNC) machining. Three different C++ interpolation libraries were studied: Boost, Alglib and TK spline. The...
Main Authors: | , , |
---|---|
Format: | Conference or Workshop Item |
Language: | English English |
Published: |
Springer Science and Business Media Deutschland GmbH
2022
|
Subjects: | |
Online Access: | http://umpir.ump.edu.my/id/eprint/39822/1/Cubic%20Spline%20Interpolations%20in%20CNC%20Machining.pdf http://umpir.ump.edu.my/id/eprint/39822/2/Cubic%20spline%20interpolations%20in%20CNC%20machining_ABS.pdf |
Summary: | A cubic spline polynomial is applied to control the machine tool movements defined by the spline. This paper is an attempt to implement cubic spline interpolation in computer numerical method (CNC) machining. Three different C++ interpolation libraries were studied: Boost, Alglib and TK spline. The goals are to compare the accuracy of interpolation and the ease of implementation of the libraries. Twenty cubic spline interpolant functions were calculated using a selected test function One thousand interpolated points were calculated using the three different cubic spline interpolation libraries. Based on findings in this work, the Boost library is best on accuracy based on RMSE (root mean square error), while the TK spline library is simplest to implement in software code. The Alglib library is the most complicated in setup, and its accuracy is similar to the TK spline library. Included at the end of this report are the C++ cubic spline source codes, results of code executions and visual plots confirming the correctness of this work. |
---|