Original location:
http://ukscene.org/portal/downloads/polydraw/flatpolygon.cpp