Fixed a bug concerning triangulation.
- Occasionally, exactly 3 vertices would remain during triangulation. The condition of the while loop did not account for this and did not terminate.