Skip to main content

A Python interface to MeshLab

Project description

PyMeshLab

DOI

BuildAndTest

Documentation Status Downloads

PyMeshLab is a Python library that interfaces to MeshLab, the popular open source application for editing and processing large 3D triangle meshes. Python bindings are generated using pybind11.

Documentation

You can find the official documentation here.

Install PyMeshLab

You can easily install PyMeshLab using pip:

pip3 install pymeshlab

Note about Conda

PyMeshLab has not been tested in a Conda environment, so we cannot provide support for it. If possible, please install PyMeshLab using pip outside of Conda. If you are a Conda developer and would like to contribute to making PyMeshLab compatible with Conda, pull requests are always appreciated :)

Run PyMeshLab

After installing PyMeshLab through pip:

python
>>> import pymeshlab
>>> ms = pymeshlab.MeshSet()

You can load, save meshes and apply MeshLab filters:

ms.load_new_mesh('airplane.obj')
ms.generate_convex_hull()
ms.save_current_mesh('convex_hull.ply')

And apply filters with your parameters:

ms.create_noisy_isosurface(resolution=128)

You can find all the names and parameters of the filters in the List of Filters page of the documentation.

To run the tests:

pip3 install pytest
pytest --pyargs pymeshlab

Build PyMeshLab

See the src folder that contains the instructions to build PyMeshLab.

License

The PyMeshlab source is released under the GPL License.

Copyright

   PyMeshLab
   All rights reserved.

   VCGLib  http://www.vcglib.net                                     o o
   Visual and Computer Graphics Library                            o     o
                                                                  _   O  _
   Paolo Cignoni                                                    \/)\/
   Visual Computing Lab  http://vcg.isti.cnr.it                    /\/|
   ISTI - Italian National Research Council                           |
   Copyright(C) 2020                                                  \

References

DOI

Please, when using this tool, cite:

@software{pymeshlab,
  author       = {Alessandro Muntoni and Paolo Cignoni},
  title        = {{PyMeshLab}},
  month        = jan,
  year         = 2021,
  publisher    = {Zenodo},
  doi          = {10.5281/zenodo.4438750}
}

Contacts

  • Paolo Cignoni (paolo.cignoni (at) isti.cnr.it)
  • Alessandro Muntoni (alessandro.muntoni (at) isti.cnr.it)

Feedback

For documented and repeatable bugs, feature requests, etc., please use the GitHub issues.

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

pymeshlab-2023.12.post1-cp312-cp312-win_amd64.whl (52.8 MB view hashes)

Uploaded CPython 3.12 Windows x86-64

pymeshlab-2023.12.post1-cp312-cp312-manylinux_2_31_x86_64.whl (98.7 MB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.31+ x86-64

pymeshlab-2023.12.post1-cp312-cp312-macosx_10_11_x86_64.whl (49.9 MB view hashes)

Uploaded CPython 3.12 macOS 10.11+ x86-64

pymeshlab-2023.12.post1-cp311-cp311-win_amd64.whl (52.8 MB view hashes)

Uploaded CPython 3.11 Windows x86-64

pymeshlab-2023.12.post1-cp311-cp311-manylinux_2_31_x86_64.whl (98.4 MB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.31+ x86-64

pymeshlab-2023.12.post1-cp311-cp311-macosx_10_11_x86_64.whl (49.9 MB view hashes)

Uploaded CPython 3.11 macOS 10.11+ x86-64

pymeshlab-2023.12.post1-cp310-cp310-win_amd64.whl (52.8 MB view hashes)

Uploaded CPython 3.10 Windows x86-64

pymeshlab-2023.12.post1-cp310-cp310-manylinux_2_31_x86_64.whl (98.0 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.31+ x86-64

pymeshlab-2023.12.post1-cp310-cp310-macosx_10_11_x86_64.whl (49.9 MB view hashes)

Uploaded CPython 3.10 macOS 10.11+ x86-64

pymeshlab-2023.12.post1-cp39-cp39-win_amd64.whl (52.8 MB view hashes)

Uploaded CPython 3.9 Windows x86-64

pymeshlab-2023.12.post1-cp39-cp39-manylinux_2_31_x86_64.whl (97.9 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.31+ x86-64

pymeshlab-2023.12.post1-cp39-cp39-macosx_10_11_x86_64.whl (49.9 MB view hashes)

Uploaded CPython 3.9 macOS 10.11+ x86-64

pymeshlab-2023.12.post1-cp38-cp38-win_amd64.whl (52.8 MB view hashes)

Uploaded CPython 3.8 Windows x86-64

pymeshlab-2023.12.post1-cp38-cp38-manylinux_2_31_x86_64.whl (97.8 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.31+ x86-64

pymeshlab-2023.12.post1-cp38-cp38-macosx_10_11_x86_64.whl (49.9 MB view hashes)

Uploaded CPython 3.8 macOS 10.11+ 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