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.

Files for pyacvd, version 0.2.3
Filename, size File type Python version Upload date Hashes
Filename, size pyacvd-0.2.3-cp35-cp35m-macosx_10_6_intel.whl (282.9 kB) File type Wheel Python version cp35 Upload date Hashes View
Filename, size pyacvd-0.2.3-cp35-cp35m-manylinux1_x86_64.whl (565.2 kB) File type Wheel Python version cp35 Upload date Hashes View
Filename, size pyacvd-0.2.3-cp35-cp35m-win_amd64.whl (119.0 kB) File type Wheel Python version cp35 Upload date Hashes View
Filename, size pyacvd-0.2.3-cp36-cp36m-macosx_10_6_intel.whl (306.0 kB) File type Wheel Python version cp36 Upload date Hashes View
Filename, size pyacvd-0.2.3-cp36-cp36m-manylinux1_x86_64.whl (600.1 kB) File type Wheel Python version cp36 Upload date Hashes View
Filename, size pyacvd-0.2.3-cp36-cp36m-win_amd64.whl (125.4 kB) File type Wheel Python version cp36 Upload date Hashes View
Filename, size pyacvd-0.2.3-cp37-cp37m-macosx_10_6_intel.whl (306.9 kB) File type Wheel Python version cp37 Upload date Hashes View
Filename, size pyacvd-0.2.3-cp37-cp37m-manylinux1_x86_64.whl (595.3 kB) File type Wheel Python version cp37 Upload date Hashes View
Filename, size pyacvd-0.2.3-cp37-cp37m-win_amd64.whl (125.5 kB) File type Wheel Python version cp37 Upload date Hashes View
Filename, size pyacvd-0.2.3.tar.gz (12.8 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page