DocumentCode :
2057685
Title :
An analysis technique and an algorithm for line clipping
Author :
Dèvai, Frank
Author_Institution :
Sch. of Comput., Inf. Syst. & Math., South Bank Univ., London, UK
fYear :
1998
fDate :
29-31 Jul 1998
Firstpage :
157
Lastpage :
165
Abstract :
A mathematical model for the expected-time analysis of line-clipping algorithms is proposed. Assuming that all clipping windows are equally likely, we demonstrate that the probability of a line segment being totally outside the window approaches the value of 8/9, provided that the line segments tend to be short and evenly distributed within a rectangle. Acceptance-rejection matrices are introduced for a machine-independent comparison of algorithms. A new line-clipping method, called QuickClip, is also proposed. QuickClip is not only simpler and more concise than the Cohen-Sutherland algorithm, the most widely used method in computer graphics, but also faster both in terms of machine-independent analysis and timing results on random line segments. Timing results also indicate that QuickClip is significantly faster than the Nicholl-Lee-Nicholl (1987) algorithm. The theoretical results generalise to 3D, with the important consequence that the average clipping volume is 1/27 of the volume of the model
Keywords :
computational complexity; hidden feature removal; matrix algebra; software performance evaluation; Cohen-Sutherland algorithm; Nicholl-Lee-Nicholl algorithm; QuickClip; acceptance-rejection matrices; average clipping volume; clipping windows; expected-time analysis; line segment; line-clipping algorithms; machine-independent algorithm comparison; Algorithm design and analysis; Computer graphics; Data mining; Geographic Information Systems; Information analysis; Information systems; Mathematical model; Mathematics; Solid modeling; Timing;
fLanguage :
English
Publisher :
ieee
Conference_Titel :
Information Visualization, 1998. Proceedings. 1998 IEEE Conference on
Conference_Location :
London
ISSN :
1093-9547
Print_ISBN :
0-8186-8509-3
Type :
conf
DOI :
10.1109/IV.1998.694214
Filename :
694214
Link To Document :
بازگشت