triangulate fixed & tested
triangulate fixed & tested