Earcut triangulation

Triangulate a polygon with holes using earcut and verify that the triangle area matches the polygon area.