delaunay¶
- openpnm.topotools.generators.delaunay(points, shape=[1, 1, 1])[source]¶
Generate a network based on Delaunay triangulation of random points
- Parameters
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
- Returns
network (dict) – A dictionary containing ‘vert.coords’ and ‘edge.conns’
tri (Delaunay tessellation object) – The Delaunay tessellation object produced by
scipy.spatial.Delaunay