Open Access Open Access  Restricted Access Subscription or Fee Access

A New Fast Clipping Algorithm for 2D-Polygon against Rectangular Windows

K. Natarajan, K. Kuppusamy

Abstract


Polygon clipping process often involves a lot of intersection calculations and comparison. One way for improving the efficiency of a polygon clipping algorithm is to save the unnecessary intersection calculations demanded by traditional algorithm by rejecting totally the edges lies outside the window. This paper presents a new 2D polygon clipping method, based on an extension to the Sutherland- Hodgman polygon clipping method in which the efficiency is improved either by rejecting the edges lies outside a boundary or by avoiding the comparison of clipping boundaries against the sides of a polygon which neither totally nor partially crossing a polygon. The proposed algorithm neither remembers so-called entry/exit intersection points and nor about union points. After discussing two basic polygon clipping algorithms, a different approach is proposed, explaining the principles of a new algorithm and presenting it step by step. An example implementation of the algorithm is given along with some results. A comparison between the proposed method, the Patrick-Gilles Maillot polygon clipping algorithm, and the Sutherland-Hodgman algorithm is also given, showing very less comparison of edge and clipping region boundary than the Sutherland-Hodgman algorithm, and the Patrick-Gilles Maillot proposed method.

Keywords


Clipping Region, Line Intersection, Polygon Clipping, Window

Full Text:

PDF

References


I. E. Sutherland and G. W. Hodgman, „„Reentrant Polygon Clipping,‟‟ CACM, vol. 17, pp. 32- 42, 1974.

S.Harrington, Computer graphics – A programming approach, McGraw Hill Book Company, 2nd edition, 1987

K. Weiler and P. Atherton, „„Hidden Surface Removal Using Polygon Area Sorting,‟‟ Computer Graphics, vol. 11, pp. 214-222, 1977.

Y. Liang and B. Barsky, „„An Analysis and Algorithm for Polygon Clipping,‟‟ CACM, vol. 26, pp. 868-877, 1983

A New, Fast Method For 2D Polygon Clipping: Analysis and Software Implementation- Patent-by Patrick-Gilles Maillot, Sun Microsystems, inc.., Mountain View, CA 94043

Sproull RF, Sutherland IE. A clipping divider. In: Proceedings of Fall Joint Computer Conference. Washington: Thompson Books; 1968. p. 765–75.

A. Kilgour, “Unifying Vector and Polygon Algorithms for Scan Conversion and Clipping,” Eurographics‟87 proceedings, pp. 363-375, August 1987.

Liang YD, Barsky BA. A new concept and method for line clipping. ACM Transactions on Graphics 1984;3(1):1–22.

J Nicholl TM, Lee DT, Nicholl RA. An efficient new algorithm for 2-D line clipping: Its development and analysis. Computer Graphics 1987; 21(4):253–92.

Wang H, Wu R, Cai S. A new efficient line clipping algorithm based on geometric transformation. Journal of Software 1998; 9(10): 728–33 (in Chinese).

Wang J, Liang Y, Peng Q. A 2-D line clipping algorithm with the least arithmetic operations. Chinese Journal of Computers 1991; 14(7):495–504 (in Chinese).

K.Natarajan, Dr.K.Kuppusamy, “An enhanced method for filling a 2D-Polygon”, CiiT, Vol 2, No 11, pp 487-490, November 2010

K.Natarajan, Dr.K.Kuppusamy, “A new method for a filling a 2D-Polygon”, CiiT, Vol 2, No 11, pp 491- 496, November 2010


Refbacks

  • There are currently no refbacks.


Creative Commons License
This work is licensed under a Creative Commons Attribution 3.0 License.