Question: deforming polygon to triangle

hi I want to write a program that convert a polygon to triangle, that is if we have polygon with 6 edges, how we can get triangle from it using edges or vertices??

I am biginner,

Please Wait...