Triangulation of a Simple Polygon

Triangulating a Polygon

Developers might pick vertices from a polygon area, and then form triangles by calling Triangulate method of the PolygonModifier class, each of the form V{1}, V{i-1}, V{i} with the index i going from 3 to n. The Vertex and PolygonCanvas classes in Triangulate/PolygonCanvas.py file under the demo application (name:Triangulate) demonstrates the way of triangulating a polygon using Aspose.3D API.

Programming Sample for Triangulation

This code example picks vertices from a polygon area, and then apply an algorithm to create triangles. You can download complete working project of this example from here.