/ Published in: PHP
this is an ear clipping triangulation algorithm.
original here:
http://forum.unity3d.com/threads/27223-Polygon-triangulation-code
http://www.unifycommunity.com/wiki/index.php?title=Triangulator
original here:
http://forum.unity3d.com/threads/27223-Polygon-triangulation-code
http://www.unifycommunity.com/wiki/index.php?title=Triangulator