A method of decomposing a polygon in triangles