arXiv · 2312.16363
Polygon Detection from a Set of Lines
Abstract
Detecting polygons defined by a set of line segments in a plane is an important step in analyzing vector drawings. This paper presents an approach combining several algorithms to detect basic polygons from arbitrary line segments. The resulting algorithm runs in polynomial time and space, with complexities of $O\bigl((N + M)^4\bigr)$ and $O\bigl((N + M)^2\bigr)$, where $N$ is the number of line segments and $M$ is the number of intersections between line segments. Our choice of algorithms was made to strike a good compromise between efficiency and ease of implementation. The result is a simple and efficient solution to detect polygons from lines.
Explore related subjects
Keep this discovery
Explore connections, maps & timelines
Alfredo Ferreira Jr., Manuel J. Fonseca, Joaquim A. Jorge. 2023-12-27. Polygon Detection from a Set of Lines. https://arxiv.org/abs/2312.16363
Cite the original work for its findings. Save a collection to share your selection of sources.