Polygon Tessellation Class

Tagged:

If you need to draw filled polygons to the screen then this class is for you.

This standalone class accepts as input a list of points forming a polygon. It then reduces the polygon into a number of triangles suitable for drawing as a TriangleList with XNA commands in an IDrawableBatch. It outputs a list of the triangles' ordered vertices and a list of indices ready to be drawn as a TriangleList. An example (and the image displayed here) of this algorithm (although not using this exact class) is available as a project under the tech demo tag.

Product File: 
Syndicate content