一种简单的圆离散化算法及其应用
A Simple Circle Discretization Algorithm With Applications
摘要:
在CNC制造中,通常需要创建G代码程序,这些程序需要计算离散的x-y坐标对(2D)。这种情况的一个例子是,当程序员需要创建一个程序来加工螺旋时(或线程)。所需的刀具路径将是螺旋曲线上的一组点。现在的问题需要计算沿此曲线的点数。点数太少,刀具路径将无法光滑。点太多,程序变得太大。这篇文章将提供一种简单的方法来将圆划分成离散点,并在算法中内置了“尺寸公差”的概念。
英文摘要:
In CNC manufacturing,there often arises the need to create G-Code programs which require the calculation of discrete x-y coordinate pairs(2D).An example of this situation is when the programmer needs to create a program to machine a helix(or thread).The required toolpath will be a set of points on a helix curve.The problem now entails calculating the number of points along this curve.Too few points and the toolpath will not be smooth.Too many points and the program becomes too big.This article will serve to provide a simple way to divide a circle into discrete points,with a notion of "dimensional tolerance" built into the algorithm.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。