An Efficient Algorithm for Complex Polygon Clipping
Lifan Li
Abstract
Lifan Li
Abstract
We popose an efficient algorithm for complex polygon clipping by adopting the trapezium segmentation technique and scan-line idea.Firstly,we find and compute the intersection points between main polygons and window polygons,then we record and sort the Y values of these points and the points in all polygons.Secondly,we cut all the polygons into some trapezium units by drawing the scan lines on the basis of these Y values and intersecting the edges of all polygons with the scan lines.Thirdly,we complete the trapezium-split operation line by line and pick up the intersection parts between the trapezia from main polygons and those from window polygons.Finally,we acquire the clipping polygons by tracing the boundary of the intersection parts.This algorithm ovecomes the complex computations such as the line reorganization and calculation of entry and exit points on the polygons.
OpenAlex reports 1 citations for this work. Citation counts describe recorded attention and do not establish research quality.
A contribution statement is not available in the OpenAlex record.
Method details are not available in the OpenAlex metadata.
Findings are not separately available in the OpenAlex metadata.
Limitations are not available in the OpenAlex metadata.
Application details are not available in the OpenAlex metadata.
We popose an efficient algorithm for complex polygon clipping by adopting the trapezium segmentation technique and scan-line idea.Firstly,we find and compute the intersection points between main polygons and window polygons,then we record and sort the Y values of these points and the points in all polygons.Secondly,we cut all the polygons into some trapezium units by drawing the scan lines on the basis of these Y values and intersecting the edges of all polygons with the scan lines.Thirdly,we complete the trapezium-split operation line by line and pick up the intersection parts between the trapezia from main polygons and those from window polygons.Finally,we acquire the clipping polygons by tracing the boundary of the intersection parts.This algorithm ovecomes the complex computations such as the line reorganization and calculation of entry and exit points on the polygons.
Key concepts: Polygon (computer graphics), Star-shaped polygon, Point in polygon, Intersection (aeronautics), Rectilinear polygon, Clipping (morphology), Line segment, Line (geometry)