Detect all closed polygons given a set of line segments implementing the Bentley–Ottmann algorithm.
README
ofxPolygonDetector
Detect all closed polygons given a set of line segments implementing the Bentley–Ottmann algorithm.
Installation
Download this repository in your addons folder
$ cd ../addons/
$ git clone https://github.com/PauRosello97/ofxPolygonDetectorUsage
``
c++ include "ofxPolygonDetector.h";
polygons = polygonDetector.detectPolygons(lines); ``Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.Credits
Catalin StanAlfredo Ferreira, Manuel J. Fonseca, Joaquim Armando Pires Jorge
ofxAddons