openpnm.topotools.generators.voronoi(points, shape=[1, 1, 1])[source]

Generate a network based on a Voronoi tessellation of base points

  • points (array_like or int) – Can either be an N-by-3 array of point coordinates which will be used, or a scalar value indicating the number of points to generate.

  • shape (array_like) – Indicates the size and shape of the domain.


  • network (dict) – A dictionary containing ‘vert.coords’ and ‘edge.conns’

  • vor (Voronoi tessellation object) – The Voronoi tessellation object produced by scipy.spatial.Voronoi