Then you probably don't need it :)
Brief explanation: It triangulates a polygon. Which means it takes a number of points order in sequence to form the outline of a shape, and then calculates how this shape can be made 'solid' by filling the stuff inbetween the outline with triangles. This is pretty tricky, and this code only works for 'simple' polygons, with no holes in them.
What can it be used for? A lot of things, mostly it is useful for triangulating complex polygons (with more than 4 vertices), which is exported from some 3D programs. Other than that, it can be used for selection tools etc. But it's not something many people need, it's useful for some things, but mostly nothing to do with making games :)
Try the example included, it should show what it does.
|