I wrote a program in as3 that allows a user to draw a shape, that must be closed. Then all the data of each vertex (x y) is saved in an object so it can be redrawn again.
I need somebody to write an algorithm that returns a set of connecting triangles from this data? See the attached images for what the shapes can look like, and what the triangles should be.
I'm trying to build these shapes in papervision, but the only way to build it is to convert them to triangles.
This needs to be done in actionscript 3.0