I'm trying to get a delaunay triangulation of a set of points on the surface

of the torus. I'm using matplotlib.delaunay, but it seems to only give the

triangulation for a flat surface. Is there any way to tell it to take the

periodic boundary conditions into account, or alter the points I input such

that matplotlib.delaunay interprets them as being on the surface of the

torus.

Perhaps another choice of package might be better, but I know very little

Python. I'm really a Matlab man, and matplotlib.delaunay is very similar to

the equivalent function there. So if you know of an alternative, could you

point me to idiotproof example files?

## ···

--

View this message in context: http://old.nabble.com/matplotlib.delauney-with-periodic-boundary-conditions-tp30027789p30027789.html

Sent from the matplotlib - users mailing list archive at Nabble.com.

Having said that, assuming your points are reasonably dense, then you can simply repeat your points 9 (or 25) times in a tiled grid, then pull out the center. That's probably close enough. There's some bookkeeping left as an exercise for the reader, but it's nothing unreasonable.

## ···

On 10/22/10 6:28 AM, Matthew Matic wrote:

I'm trying to get a delaunay triangulation of a set of points on the surface

of the torus. I'm using matplotlib.delaunay, but it seems to only give the

triangulation for a flat surface. Is there any way to tell it to take the

periodic boundary conditions into account, or alter the points I input such

that matplotlib.delaunay interprets them as being on the surface of the

torus.

--

Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma

that is made terrible by our own mad attempt to interpret it as though it had

an underlying truth."

-- Umberto Eco