Line Clipping by Managing Polygon Edges in Convex Polylines
Wencheng Wang, Chunjua Sun, Jing Li, Enhua Wu
In Journal of Graphics Tools, 13(2), 2008.
Abstract: Existing algorithms for clipping line segments against a concave polygon always need to compute all edges, resulting in a time complexity O(n) for computing intersection points, where n is the number of edges of the clipping polygon. This paper presents a new algorithm hat first separates polygon edges into convex polylines and then clips lines against them, where a convex polyline is a sequence of edges that ccan form a covex polygon by themselves. As a result, the time complexity for computing intersection points is reduced, varying between O(log n) and O(n), and is lower than O(n) in most cases. To further improve clipping efficiency, the new algorithm is combined with an axis-aligned BSP tree that is used to manage convex polylines for quickly finding convex polylines that might intersect the clipped lines. Examples show that the new algorithm can be several times faster than existing algorithms for line clipping.
@article{Wang:2008:LCB,
author = {Wencheng Wang and Chunjua Sun and Jing Li and Enhua Wu},
title = {Line Clipping by Managing Polygon Edges in Convex Polylines},
journal = {Journal of Graphics Tools},
volume = {13},
number = {2},
pages = {55--71},
year = {2008},
}
Return to the search page.
graphbib: Powered by "bibsql" and "SQLite3."