The below definition should sub divide any polygonal surface into as many triangular sub surfaces as the number of sides of the polygon.
File: Triangulation.dyn
The density of the triangulation can be increased by applying the function (TriDiv) again (…and again…) on the results obtained (The list might need to be flattened, though)