Skip to main content

Uniformly remeshes surface meshes

Project description

https://img.shields.io/pypi/v/pyacvd.svg

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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

pyacvd-0.2.11-cp312-cp312-win_amd64.whl (132.6 kB view hashes)

Uploaded CPython 3.12 Windows x86-64

pyacvd-0.2.11-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (859.1 kB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

pyacvd-0.2.11-cp312-cp312-macosx_10_9_universal2.whl (291.5 kB view hashes)

Uploaded CPython 3.12 macOS 10.9+ universal2 (ARM64, x86-64)

pyacvd-0.2.11-cp311-cp311-win_amd64.whl (136.1 kB view hashes)

Uploaded CPython 3.11 Windows x86-64

pyacvd-0.2.11-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (895.1 kB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

pyacvd-0.2.11-cp311-cp311-macosx_10_9_universal2.whl (290.0 kB view hashes)

Uploaded CPython 3.11 macOS 10.9+ universal2 (ARM64, x86-64)

pyacvd-0.2.11-cp310-cp310-win_amd64.whl (136.2 kB view hashes)

Uploaded CPython 3.10 Windows x86-64

pyacvd-0.2.11-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (844.0 kB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

pyacvd-0.2.11-cp310-cp310-macosx_10_9_universal2.whl (289.7 kB view hashes)

Uploaded CPython 3.10 macOS 10.9+ universal2 (ARM64, x86-64)

pyacvd-0.2.11-cp39-cp39-win_amd64.whl (136.4 kB view hashes)

Uploaded CPython 3.9 Windows x86-64

pyacvd-0.2.11-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (846.8 kB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

pyacvd-0.2.11-cp39-cp39-macosx_10_9_universal2.whl (290.9 kB view hashes)

Uploaded CPython 3.9 macOS 10.9+ universal2 (ARM64, x86-64)

pyacvd-0.2.11-cp38-cp38-win_amd64.whl (136.8 kB view hashes)

Uploaded CPython 3.8 Windows x86-64

pyacvd-0.2.11-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (869.5 kB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

pyacvd-0.2.11-cp38-cp38-macosx_10_9_universal2.whl (289.8 kB view hashes)

Uploaded CPython 3.8 macOS 10.9+ universal2 (ARM64, x86-64)

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