A novel and efficient approach for line segment clipping against a convex polygon
Author(s) -
K. R. Wijeweera,
S. R. Kodituwakku,
M.A.P. Chamikara
Publication year - 2019
Publication title -
ruhuna journal of science
Language(s) - English
Resource type - Journals
eISSN - 2536-8400
pISSN - 1800-279X
DOI - 10.4038/rjs.v10i2.81
Subject(s) - polygon (computer graphics) , regular polygon , clipping (morphology) , computer science , line (geometry) , mathematics , combinatorics , computer graphics (images) , geometry , telecommunications , linguistics , philosophy , frame (networking)
This paper proposes a new line clipping algorithm against a convex polygon with O (N) time complexity. The line segment is pruned against each extended edge of the polygon as the first step of the proposed algorithm. Then, the pruning process gives accurate outcomes for completely inside and partially inside line segments only. It could be observed that the endpoints of completely outside line segments coincide after the pruning process. The algorithm was developed based on this observation. The proposed algorithm was compared against the four existing algorithms both theoretically and experimentally. The proposed algorithm is faster than Cyrus Beck algorithm and it is slower than ECB, Rappaport, and Skala algorithms. Keywords: Computer Graphics Programming, Line Clipping Algorithms, Computational Geometry, Convex Analysis, Time Complexity.
Accelerating Research
Robert Robinson Avenue,
Oxford Science Park, Oxford
OX4 4GP, United Kingdom
Address
John Eccles HouseRobert Robinson Avenue,
Oxford Science Park, Oxford
OX4 4GP, United Kingdom