[Paper Review] An Extension Of Weiler-Atherton Algorithm To Cope With The Self-intersecting Polygon
This paper extends the Weiler-Atherton polygon clipping algorithm to handle self-intersecting polygons by decomposing them into non-self-intersecting contours before clipping. The method tracks edges from hole contours and removes stored edges from the final output, enabling correct clipping of complex self-intersecting shapes that the original algorithm cannot process.
In this paper a new algorithm has been proposed which can fix the problem of Weiler Atherton algorithm. The problem of Weiler Atherton algorithm lies in clipping self intersecting polygon. Clipping self intersecting polygon is not considered in Weiler Atherton algorithm and hence it is also a main disadvantage of this algorithm. In our new algorithm a self intersecting polygon has been divided into non self intersecting contours and then perform the Weiler Atherton clipping algorithm on those sub polygons. For holes we have to store the edges that is not own boundary of hole contour from recently clipped polygon. Thus if both contour is hole then we have to store all the edges of the recently clipped polygon. Finally the resultant polygon has been produced by eliminating all the stored edges.
Motivation & Objective
- Address the limitation of the Weiler-Atherton algorithm in handling self-intersecting polygons, which it cannot clip correctly.
- Overcome the fundamental flaw where self-intersection leads to incorrect or undefined clipping behavior.
- Enable robust clipping of complex polygons with self-intersections by transforming them into manageable, non-self-intersecting sub-polygons.
- Preserve topological correctness by tracking and eliminating edges from hole contours during the clipping process.
- Ensure the final output polygon is free of extraneous edges introduced during processing of holes and self-intersections.
Proposed method
- Decompose a self-intersecting polygon into multiple non-self-intersecting contours prior to applying the Weiler-Atherton algorithm.
- Apply the standard Weiler-Atherton clipping algorithm independently to each non-self-intersecting contour.
- Track edges that belong to hole contours but are not part of the boundary of the hole’s own contour.
- Store all edges from a recently clipped polygon if both the current and previous contours are holes.
- Remove all stored edges from the final output to eliminate spurious geometry introduced during hole processing.
- Reconstruct the final clipped polygon by combining valid clipped contours and excluding the stored edges.
Experimental results
Research questions
- RQ1How can the Weiler-Atherton algorithm be adapted to correctly clip self-intersecting polygons that it currently fails to process?
- RQ2What decomposition strategy ensures that self-intersecting polygons are broken into non-self-intersecting sub-polygons without losing topological integrity?
- RQ3How can hole contours be reliably identified and their edges tracked during the clipping process to avoid incorrect edge inclusion?
- RQ4What mechanism ensures that only valid edges are retained in the final output after clipping complex, self-intersecting shapes?
- RQ5Can the extended algorithm maintain correctness and efficiency while handling edge cases such as multiple self-intersections and nested holes?
Key findings
- The proposed algorithm successfully extends the Weiler-Atherton algorithm to handle self-intersecting polygons by decomposing them into non-self-intersecting contours.
- The method correctly identifies and tracks edges from hole contours, ensuring they are excluded from the final output when necessary.
- By storing all edges from a clipped polygon when both the current and previous contours are holes, the algorithm prevents incorrect edge retention.
- The final output polygon is free of extraneous edges, achieving topological correctness even in complex clipping scenarios.
- The approach maintains the core logic of the Weiler-Atherton algorithm while resolving its key limitation regarding self-intersection.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.