Draw a line to split the polygon in 2.
I used an algorithm from Wikipedia to find the point of intersection of two line segments.
The polygon is split at the points of intersection, based on where you draw the line.
Click here for the live version
ue007 / split-polygon Goto Github PK
View Code? Open in Web Editor NEWThis project forked from phungng/split-polygon
License: MIT License