This module takes a surface mesh and returns a uniformly meshed surface using voronoi clustering. This approach is loosely based on research by S. Valette, and J. M. Chassery in ACVD.
Installation is straightforward using pip:
$ pip install pyacvd
This example remeshes a non-uniform quad mesh into a uniform triangular mesh.
from pyvista import examples
import pyacvd
# download cow mesh
cow = examples.download_cow()
# plot original mesh
cow.plot(show_edges=True, color='w')
clus = pyacvd.Clustering(cow)
# mesh is not dense enough for uniform remeshing
clus.subdivide(3)
clus.cluster(20000)
# plot clustered cow mesh
clus.plot()
# remesh
remesh = clus.create_mesh()
# plot uniformly remeshed cow
remesh.plot(color='w', show_edges=True)