Text this: A proof of Jordan curve theorem based on the sweepline algorithm for trapezoidal decomposition of a polygon