https://github.com/liblaf/melon
๐ A comprehensive Python library for 3D mesh processing with advanced I/O capabilities, proximity analysis, and integration with external mesh processing tools.
https://github.com/liblaf/melon
Last synced: 3 months ago
JSON representation
๐ A comprehensive Python library for 3D mesh processing with advanced I/O capabilities, proximity analysis, and integration with external mesh processing tools.
- Host: GitHub
- URL: https://github.com/liblaf/melon
- Owner: liblaf
- License: mit
- Created: 2025-02-01T09:19:52.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2026-03-24T13:24:26.000Z (3 months ago)
- Last Synced: 2026-03-25T16:44:24.134Z (3 months ago)
- Language: Python
- Homepage: https://melon.readthedocs.io
- Size: 4.93 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README

**[Explore the docs ยป](https://liblaf.github.io/melon/)**
[](https://codecov.io/gh/liblaf/melon)
[](https://github.com/liblaf/melon/actions/workflows/mega-linter.yaml)
[](https://github.com/liblaf/melon/actions/workflows/test.yaml)
[](https://results.pre-commit.ci/latest/github/liblaf/melon/main)
[](https://codspeed.io/liblaf/melon)
[](https://github.com/astral-sh/ruff)
[](https://pypi.org/project/liblaf-melon)
[](https://pypi.org/project/liblaf-melon)
[](https://pypi.org/project/liblaf-melon)
[Changelog](https://github.com/liblaf/melon/blob/main/CHANGELOG.md) ยท [Report Bug](https://github.com/liblaf/melon/issues) ยท [Request Feature](https://github.com/liblaf/melon/issues)

## โจ Features
- ๐๏ธ **Advanced I/O:** Supports reading and writing various mesh formats (OBJ, PLY, STL, VTK, VTP, VTU) with seamless integration to PyVista and Trimesh;
- ๐ **Proximity Analysis:** Provides efficient algorithms for nearest point and nearest point on surface queries with configurable thresholds and normal-based filtering;
- ๐ง **External Tool Integration:** Wraps powerful external tools like MeshFix for mesh repair and TetWild for tetrahedral mesh generation;
- ๐ **Barycentric Utilities:** Includes functions for converting barycentric coordinates to points and sampling barycentric coordinates for simulation and analysis;
- โจ๏ธ **Command-Line Interface:** Offers a CLI for common tasks such as landmark annotation and mesh information display;
- ๐ท๏ธ **Type Safety:** Utilizes modern Python type hints and static analysis tools for robust and maintainable code.
## ๐ฆ Installation
To install `liblaf-melon`, run the following command:
```bash
uv add liblaf-melon
```
## โจ๏ธ Local Development
You can use Github Codespaces for online development:
[](https://codespaces.new/liblaf/melon)
Or clone it for local development:
```bash
gh repo clone liblaf/melon
cd melon
mise run install
```
## ๐ค Contributing
Contributions of all types are more than welcome, if you are interested in contributing code, feel free to check out our GitHub [Issues](https://github.com/liblaf/melon/issues) to get stuck in to show us what you're made of.
[](https://github.com/liblaf/melon/pulls)
[](https://github.com/liblaf/melon/graphs/contributors)
## ๐ More Projects
- **[๐ Grapes](https://github.com/liblaf/grapes)** - Supercharge your Python with rich logging, precise timing, and seamless serialization.
- **[๐ Melon](https://github.com/liblaf/melon)** - A comprehensive Python library for 3D mesh processing with advanced I/O capabilities, proximity analysis, and integration with external mesh processing tools.
- **[๐ Tangerine](https://github.com/liblaf/tangerine)** - Squeeze dynamic content into your files with Tangerine's template magic.
- **[๐โ๐ฉ Lime](https://github.com/liblaf/lime)** - AI-powered Git commit assistant and repository documentation generator
- **[๐ Apple](https://github.com/liblaf/apple)** - A JAX and Warp library for differentiable physics simulation, featuring elastic energy models and finite element methods.
- **[๐ Cherries](https://github.com/liblaf/cherries)** - Sweet experiment tracking with Comet, DVC, and Git integration.
---
#### ๐ License
Copyright ยฉ 2025 [liblaf](https://github.com/liblaf).
This project is [MIT](https://github.com/liblaf/melon/blob/main/LICENSE) licensed.