1. An offset algorithm for polyline curves
- Author
-
Liu, Xu-Zheng, Yong, Jun-Hai, Zheng, Guo-Qin, and Sun, Jia-Guang
- Subjects
Algorithm ,Algorithms - Abstract
To link to full-text access for this article, visit this link: http://dx.doi.org/10.1016/j.compind.2006.06.002 Byline: Xu-Zheng Liu (a)(b), Jun-Hai Yong (a), Guo-Qin Zheng (a), Jia-Guang Sun (a)(b) Keywords: Polyline curve; Offset curve; Clipping algorithm Abstract: Polyline curves which are composed of line segments and arcs are widely used in engineering applications. In this paper, a novel offset algorithm for polyline curves is proposed. The offset algorithm comprises three steps. Firstly, the offsets of all the segments of polyline curves are calculated. Then all the offsets are trimmed or joined to build polyline curves that are called untrimmed offset curves. Finally, a clipping algorithm is applied to the untrimmed offset curves to yield the final results. The offset algorithm can deal with polyline curves that are self-intersection, overlapping or containing small arcs. The new algorithm has been implemented in a commercial system TiOpenCAD 8.0 and its reliability is verified by a great number of examples. Author Affiliation: (a) School of Software, Tsinghua University, Beijing 100084, PR China (b) Department of Computer Science and Technology, Tsinghua University, Beijing 100084, PR China Article History: Received 22 July 2004; Accepted 6 June 2006
- Published
- 2007