show_mesh

Import packages

[1]:
import porespy as ps
import numpy as np
import matplotlib.pyplot as plt

np.random.seed(0)
ps.visualization.set_mpl_style()

Create image:

[2]:
im = ps.generators.blobs([50, 50, 20], blobiness=0.5)
mesh = ps.tools.mesh_region(im)

Display image:

[3]:
ps.visualization.show_mesh(mesh=mesh);
../../../_images/examples_visualization_howtos_show_mesh_6_0.svg