Skip to main content

Uniformly remeshes surface meshes

Project description

https://img.shields.io/pypi/v/pyacvd.svg https://travis-ci.org/pyvista/pyacvd.svg?branch=master

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

Installation is straightforward using pip:

$ pip install pyacvd

Example

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')
original cow mesh zoomed cow mesh
clus = pyacvd.Clustering(cow)
# mesh is not dense enough for uniform remeshing
clus.subdivide(3)
clus.cluster(20000)

# plot clustered cow mesh
clus.plot()
zoomed cow mesh
# remesh
remesh = clus.create_mesh()

# plot uniformly remeshed cow
remesh.plot(color='w', show_edges=True)
zoomed cow mesh

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyacvd-0.2.2.tar.gz (12.8 kB view hashes)

Uploaded Source

Built Distributions

pyacvd-0.2.2-cp37-cp37m-win_amd64.whl (125.5 kB view hashes)

Uploaded CPython 3.7m Windows x86-64

pyacvd-0.2.2-cp37-cp37m-manylinux1_x86_64.whl (592.0 kB view hashes)

Uploaded CPython 3.7m

pyacvd-0.2.2-cp37-cp37m-macosx_10_6_intel.whl (306.8 kB view hashes)

Uploaded CPython 3.7m macOS 10.6+ intel

pyacvd-0.2.2-cp36-cp36m-win_amd64.whl (125.5 kB view hashes)

Uploaded CPython 3.6m Windows x86-64

pyacvd-0.2.2-cp36-cp36m-manylinux1_x86_64.whl (598.7 kB view hashes)

Uploaded CPython 3.6m

pyacvd-0.2.2-cp36-cp36m-macosx_10_6_intel.whl (306.1 kB view hashes)

Uploaded CPython 3.6m macOS 10.6+ intel

pyacvd-0.2.2-cp35-cp35m-win_amd64.whl (119.0 kB view hashes)

Uploaded CPython 3.5m Windows x86-64

pyacvd-0.2.2-cp35-cp35m-manylinux1_x86_64.whl (566.4 kB view hashes)

Uploaded CPython 3.5m

pyacvd-0.2.2-cp35-cp35m-macosx_10_6_intel.whl (282.9 kB view hashes)

Uploaded CPython 3.5m macOS 10.6+ intel

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page