Polygon triangulation with visualization