views:

490

answers:

3

I need to find the Delaunay tessellation of a polygon in Python, and the only libraries I could find (Delny, scikits) triangulate point clouds, not polygons. Any suggestions?

A: 

According to Wikipedia's article, the Delaunay triangulation is defined for a set of points, not for a polygon. Could you just pass the set of the polygon's points into one of those libraries?

mvanbem
It works, but gets rid of all the concavities.
Archagon
+1  A: 

Apparently Triangle has a Python binding. I'll try to get it working

Archagon
I've used Triangle without any issues on python24
bpowah
A: 

Have you tried matplotlib.delaunay.interpolate link text or Delny link text?

Robert
matplotlib's docs say that the algorithm fails in certain cases, and Delny only accepts point clouds.
Archagon