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