This project has moved. For the latest updates, please go here.
1
Vote

Incorrect Triangle returned

description

When passing in the following array of Vertex2, Triangulator returns an invalid triangle.
Input:
 
Vector2[] sourceVertices = new Vector2[]
{
new Vector2(0, 0),
new Vector2(200, 0),
new Vector2(200, 200),
new Vector2(100, 100),
new Vector2(0, 200)
}
 
 
Here, the second “triangle” returned is a actually a line containing points 2, 3, and 0.

comments