Polygon Detection (Bentley-Ottmann)

Hi! I need to generate polygons from the intersection of lines and I wonder if there’s already any addon implementing Bentley-Ottmann algorithm or any similar solution. If found ofxSweepLine but looks incomplete. Any idea?

Thanks

I didn’t find a solution, so I created this addon: GitHub - PauRosello97/ofxPolygonDetector: Detect all closed polygons given a set of line segments implementing the Bentley–Ottmann algorithm.

1 Like