The method should be working correctly now, it's just that the testing of it hasn't been extremely robust. If you are able to test it with a few more complex cases, that would be great. Notification of bugs would be appreciated!

Right now, the function will perform a surface triangulation of arbitrary polygons (non-planar, convex/concave), with one exception: It doesn't yet handle polygons with holes.