A New Offset Algorithm for Closed 2D Lines with Islands
作者
Hyun Chul Kim,Lee Sung-Gun,Min-Yang Yang
出处
期刊:Transactions of The Korean Society of Mechanical Engineers A [Korean Society of Mechanical Engineers] 日期:2006-02-01卷期号:30 (2): 141-148被引量:3
标识
DOI:10.3795/ksme-a.2006.30.2.141
摘要
In this paper, a new offset algorithm for closed 2D lines with islands is introduced and the result is illustrated. The main point of the proposed algorithm is that every point is set to be an offset by using bisectors, and the invalid offset lines, which are not to be participated in offsets, are detected in advance and handled with an invalid offset edge handling algorithm. As a result, raw offset lines without local invalid loops are generated. The proposed offset method is proved to be robust and simple, moreover, has a near O(n) time complexity, where n denotes the number of input lines. In Addition, the proposed algorithm has been implemented and tested with 2D lines of various shapes.