Subject Area
Production Engineering and Mechanical Design
Article Type
Original Study
Abstract
This paper presents an efficient line-offset algorithm for general polygonal shapes with islands. A developed sweep-line algorithm (SL) is introduced to find all sell-intersection points accurately and quickly. The previous work is limited to handle polygons that having no line-segments in parallel to $Weep-line directions. An invalid loop detection and removing (ILDR) algorithm is proposed. The invalid loops detection algorithm divides the polygon al self-intersection points into a set of small polygons, and re-polygonized them. The polygons are checked for direction; invalid polygons are always having inverse direction with the boundary polygon. The proposed algorithm has been implemented in Visual C++ and applied to offset point scquence curves, which contain several islands.
Keywords
Polygonal chain; Monotone chain; Sweep-line; Self-intersection; CAD/CAM; CNC; Spiral pocketing; Line offset; Detecting invalid loops
Recommended Citation
El-Midany, Tawfik; Elkeran, Ahmed Abd El-Fattah; and Tawfik, H.
(2021)
"A Sweep-Line Algorithm and its Application to Spiral Pocketing.,"
Mansoura Engineering Journal: Vol. 26
:
Iss.
4
, Article 7.
Available at:
https://doi.org/10.21608/bfemu.2021.146094