Given a path expressed as an array of 2d points:
Point[] path = new Point[4]
{
new Point(0,0),
new Point(10,0),
new Point(10,10),
new Point(0,10),
};
... Here, a box.
What is the best way to convert this to a list of triangles (which fill the path) to be used in a 3D application? Given that this is only a simple example and the path may be fairly complex in reality. Is there anything already in the framework, maybe System.Drawing or in WPF which would help with this?
Edit: (After the comment by Samuel) Ideally, I'l like to be able to deal with both convex and concave polygons, else the graphic will have to be up of many convex polygons manually..