Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pyacvd

Package Overview
Dependencies
Maintainers
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pyacvd

Uniformly remeshes surface meshes

  • 0.3.1
  • PyPI
  • Socket score

Maintainers
2

######## pyacvd ########

.. image:: https://img.shields.io/pypi/v/pyacvd.svg :target: https://pypi.org/project/pyacvd/

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 <https://github.com/valette/ACVD>_.


Installation


Installation is straightforward using pip:

.. code::

$ pip install pyacvd


Example


This example remeshes a non-uniform quad mesh into a uniform triangular mesh.

.. code:: python

from pyvista import examples import pyacvd

download cow mesh

cow = examples.download_cow()

plot original mesh

cow.plot(show_edges=True, color='w')

.. image:: https://github.com/pyvista/pyacvd/raw/main/docs/images/cow.png :alt: original cow mesh

.. image:: https://github.com/pyvista/pyacvd/raw/main/docs/images/cow_zoom.png :alt: zoomed cow mesh

.. code:: python

clus = pyacvd.Clustering(cow)

mesh is not dense enough for uniform remeshing

clus.subdivide(3) clus.cluster(20000)

plot clustered cow mesh

clus.plot()

.. image:: https://github.com/pyvista/pyacvd/raw/main/docs/images/cow_clus.png :alt: zoomed cow mesh

.. code:: python

remesh

remesh = clus.create_mesh()

plot uniformly remeshed cow

remesh.plot(color='w', show_edges=True)

.. image:: https://github.com/pyvista/pyacvd/raw/main/docs/images/cow_remesh.png :alt: zoomed cow mesh

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc