TinyMesh is a light-weight mesh processing library in C/C++ and Python.
Here is the list of modules and reference papers for that.
- Geometric properties
- Principal curvatures [Rusinkiewicz 2004]
- Heat kernel signatures [Sun et al. 2009]
- Smoothing
- Laplacian smoothing
- Taubin smoothing [Taubin 1995]
- Implicit fairing [Desbrun 1999]
- Denoising
- Normal Gaussian filter [Ohtake et al. 2001]
- Normal bilateral filter [Zheng et al. 2011]
- L0 mesh smoothing [He and Schaefer 2013]
- Remeshing
- Uniform triangulation [Hoppe 1996]
- Simplification
- Quadric error metrics (QEM) [Garland and Heckbert 1997]
- Hole filling
- Min-area hole filling [Barequet and Sharir 1995]
- Min-dihedral angle [Liepa 2003]
- Advancing front [Zhao et al. 2007]
The C++ library requires CMake 3.24 or later and a C++20 compiler with std::format support.
You can build a static library and all the examples by CMake with the following commands.
Dependencies are pinned and downloaded by CMake during configuration; the first build requires network access.
Python and visualization libraries are not required for this build.
git clone https://github.com/tatsy/tinymesh.git --depth 1
cd tinymesh
mkdir build && cd build
cmake -DCMAKE_BUILD_TYPE=Release -DTINYMESH_BUILD_PYTHON=OFF -DTINYMESH_BUILD_EXAMPLES=ON ..
cmake --build . --config Release --parallel 2You can install the Python module using Pip.
pip install git+https://github.com/tatsy/tinymesh.gitFor development, install from source with uv.
git clone https://github.com/tatsy/tinymesh
cd tinymesh
uv syncThe Python package exposes the C++ API as tinymesh and the optional viewer as
from tinymesh.visualization import Viewer.
./build/bin/example_simplify data/models/bunny.plyuv sync --group examples
uv run --group examples jupyter lab examples/python| Input | Remesh | Remesh (bottom part) |
![]() |
![]() |
![]() |
| Input | Simplify (50000 faces) | Simplify (10000 faces) |
![]() |
![]() |
![]() |
| Original | Noisy | Denoise |
![]() |
![]() |
![]() |
| Original | Hole filled (minimum dihedral angles) | Hole filled (advancing front) |
![]() |
![]() |
![]() |
The functions provided by this repo are not perfect and their process will fail for problematic meshes, e.g., with non-manifold faces. In such cases, you can fix the problem by repairing the mesh using MeshFix.
Mozilla Public License v2 (c) Tatsuya Yatagawa 2020-2026












