Affiliation:
1. Huaqiao University Institute of Advanced Manufacturing Technology Quanzhou, People's Republic of China
2. Leeds Metropolitan University School of Engineering Leeds, UK
Abstract
Conventional straight-line generating algorithms, such as the digital differential analyser (DDA), Bresenham's algorithm and the mid-point algorithm, are suitable only for planer straight lines on the coordinate planes, of which Bresenham's algorithm is the most efficient. In this paper, the authors have extended Bresenham's algorithm to spatial straight lines. Given a spatial straight-line segment with two end-points, the authors have applied Bresenham's algorithm to the projections of the line segment on two of the three coordinate planes, which is determined by the largest of the coordinate lengths of the line segment, thereby obtaining a three-dimensional extension of the algorithm. In a case study, the authors calculated the distance between each sample position and the given line segment. The result reveals that the actual error at each sample position is smaller than the maximum theoretical error, and the performance of the three-dimensional extension of Bresenham's algorithm is as good as that of Bresenham's original planer algorithm. One of its potential applications is the three-dimensional step straight-line interpolation used in computer numerical control (CNC) systems of machine tools and rapid prototyping machines. Application of the algorithm is contrasted with that of the traditional DDA step straight-line interpolation algorithm. The result confirms that the three-dimensional extension of Bresenham's algorithm is much better than the DDA straight-line interpolation algorithm.
Subject
Industrial and Manufacturing Engineering,Mechanical Engineering
Reference7 articles.
1. Algorithm for computer control of a digital plotter
2. Hearn D., Baker M. P. Computer Graphics, C Version, 2nd edition, 1997, pp. 84–94 (Prentice-Hall).
3. Interpolator for a Computer Numerical Control System
Cited by
16 articles.
订阅此论文施引文献
订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献