A Python interface to MeshLab
pip install pymeshlabPyMeshLab
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 is now available on Conda-Forge.
If you are in a Conda environment, we recommend installing PyMeshLab from Conda-Forge:
conda install -c conda-forge pymeshlab
See this discussion for more information.
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.