• 金属学与金属工艺 •

### 基于G2连续Bézier曲线的刀具轨迹压缩算法

1. （1. 上海交通大学 机械与动力工程学院， 上海 200240;2. 上海拓璞数控科技有限公司， 上海 201111）
• 收稿日期:2013-09-02
• 基金资助:

国家科技支撑计划项目（2012BAF01B07），国家重大科技专项（2012ZX04010051），上海市重大技术装备研制专项（ZBZBYZ03112190），上海特种数控装备及工艺工程技术研究中心项目（12DZ2250500）资助

### A Data Compression Algorithm Based on  G2 Continuous  Bézier Curves for Tool Paths

ZHAO Sheng1,BI Qingzhen1,WANG Yuhan1,SHI Jing1，LIU Gang2

1. (1. School of Mechanical Engineering, Shanghai Jiaotong University, Shanghai 200240, China;2. Shanghai Top Numerical Control Technology Co. Ltd., Shanghai 201111, China)
• Received:2013-09-02

Abstract:

The machining of continuous short blocks is a hot and difficult point for CNC machining. In this paper, a data compression algorithm based on the Bézier curve was proposed. First, the areas suitable for compression were screened out based on the geometric characteristics of continuous short blocks. Then, G01 points in each area were converted to special 3 order Bézier curves. To decrease the fluctuation of curvature and increase the compression ratio, the least square method was chosen to fit points. By adjusting the control points and inserting transition curves, the machining path was made G2 continuous. The fitting error was estimated by 2-order Taylor formula. Without iteration, the algorithm was realtime. The experiment proved that the compression ratio was high. The errors estimated by Taylor formula was extremely close to the real ones, indicating that the fitting accuracy could be controlled effectively.