为了克服直线和圆弧插补的各种不足,实现曲线插补,针对数控加工中的连续多段小直线刀具轨迹,提出了一种简单快捷的B-Spline曲线(NURBS曲线的特殊形式)拟合算法.该算法以标准的B-Spline最小二乘方法为基础,通过简化后的误差计算模块,可以将拟合后的曲线和原有路径的偏离控制在要求的范围内,并提出了可以实现快速连许多段小直线刀具轨迹拟合的搜索方法-最大拟合区间的稳步前进方法.通过实例计算分析,证明了给出的拟合方法可靠高效.
In order to overcome the drawbacks of linear and circular interpolation and realize the curve interpolation, an algorithm of B-Spline curve fitting was proposed, to deal with continuous small line segments of the tool path. The algorithm is based on the least square method and can keep the deviation between the fitting curve and the original path within the requtred range. In addition, a steady progress method was proposed to search the maximum fitting interval in continuous small line segments of the tool path. The efficiency and reliability of the proposed fitting algorithm were proved in practice.