astrofrog/hyperion — pull request #1 by bluescarni (2014-05-21 15:41:07+00:00)
Title: Initial import of the Voronoi grid helper class

Example usage:

```
>>> import random
>>> import numpy as np
>>> import voronoi_helpers
# Generate random sites in a cube of size 1.
>>> sites_arr = np.array([(random.uniform(0,1),random.uniform(0,1),random.uniform(0,1)) for i in range(0,1000)])
>>> vg = voronoi_helpers.voronoi_grid(sites_arr,np.array([[0.,1],[0,1],[0,1]]))
# Extract the neighbours table, containing the original site points, their neighbours, the volume of the >>> corresponding cell and the bounding box of the cell.
>>> t = vg.neighbours_table()
>>> print(t[0])

```