I've abandoned the project because its too slow. I didn't finish the filling of the center because of that reason. Only works for clockwise-winding non-self-intersecting quads.