<jupyter_start><jupyter_text>voronoi_edges<jupyter_code>import matplotlib.pyplot as plt
import numpy as np
import porespy as ps
import scipy

ps.visualization.set_mpl_style()
np.random.seed(10)<jupyter_output><empty_output><jupyter_text>voronoi_edges creates a 3 dimensional image of the egdes of a voronoi tessellation with the shape, radius, and number of cells provided within the function inputs. The variable flat_faces is used to control if the faces of the tessellation are flat.<jupyter_code>shape = [200, 300, 400]
radius = 1
ncells = 200
flat_faces = True
x = ps.generators.voronoi_edges(shape, radius, ncells, flat_faces)
gr = ps.visualization.show_3D(x)
plt.figure(figsize=[4, 4])
plt.axis(False)
fig = plt.imshow(gr);<jupyter_output><empty_output><jupyter_text>The image produced with flat_faces = True<jupyter_code>shape = [200, 300, 400]
radius = 1
ncells = 200
flat_faces = False
x = ps.generators.voronoi_edges(shape, radius, ncells, flat_faces)
gr = ps.visualization.show_3D(x)
plt.figure(figsize=[4, 4])
plt.axis(False)
fig = plt.imshow(gr);<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.10275229357798166, 'fraction_numerical': 0.03211009174311927, 'mean_word_length': 6.792857142857143, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '3', 'dir': 'jupyter-structured-clean-dedup', 'id': '566859', 'license': 'MIT', 'n_tokens_mistral': 437, 'n_tokens_neox': 396, 'n_words': 103, 'path': 'examples/generators/howtos/voronoi_edges.ipynb', 'repo_name': 'jamesobutler/porespy', 'size': '1090'}