Skip to content
项目

关于

Open mesh-to-mesh registration framework

人工智能与机器学习

这些数字如何统计

实测星标增长

24小时
0
7天
0
15天
0
1个月
+1

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

MeshMonk: High-Performance 3D Mesh Registration

MATLAB users: The MATLAB MEX interface has been removed from this repository as part of the Python-first rewrite. For MATLAB support, use the KU Leuven MIRC fork at https://gitlab.kuleuven.be/mirc/meshmonk

MeshMonk is a C++20 library with Python bindings for high-performance 3D mesh registration. It provides rigid, non-rigid, and pyramid-based registration via a clean Python API backed by a battle-tested C++ algorithmic core.

Overview

MeshMonk is a Python-first 3D mesh registration library. It can be used:

  • As a Python library: pip install 'meshmonk[io]' — then import meshmonk
  • As a CLI tool: meshmonk rigid Template.obj demoFace.obj --out result.obj

Installation

From PyPI:

pip install 'meshmonk[io]'

From source (for development):

git clone https://github.com/jsnyde0/meshmonk.git
cd meshmonk
uv pip install --system '.[io]'

Python API Quickstart

import meshmonk, trimesh

floating = trimesh.load("Template.obj")
target   = trimesh.load("demoFace.obj")

result = meshmonk.pyramid_register(floating=floating, target=target)
print(result.aligned_vertices.shape)  # (N, 3)

CLI Usage

# Rigid registration
meshmonk rigid Template.obj demoFace.obj --out result.obj

# Pyramid (multi-resolution nonrigid) registration
meshmonk pyramid Template.obj demoFace.obj --out result.obj

# View all options for a subcommand
meshmonk rigid --help
meshmonk pyramid --help

CI Matrix

The test suite runs across the following platforms on every pull request:

OS Python Compiler
Ubuntu 22.04 3.10, 3.11, 3.12, 3.13 gcc-11, clang-15
Ubuntu 24.04 3.10, 3.11, 3.12, 3.13 gcc-13
macOS 13 (x86_64) 3.10, 3.11, 3.12, 3.13 AppleClang
macOS 14 (arm64) 3.10, 3.11, 3.12, 3.13 AppleClang
Windows latest 3.12 MSVC

Repository Structure

  • CMakeLists.txt: Root CMake file for the project.
  • library/: Core MeshMonk C++ library (libmeshmonk_shared).
  • bindings/: nanobind Python bindings.
  • meshmonk/: Python package (import meshmonk).
  • vendor/: Third-party dependencies (OpenMesh, nanoflann, Eigen).
  • tests/: Python test suite.
  • docs/: Documentation and architecture decisions.

Development Setup

git clone https://github.com/jsnyde0/meshmonk.git
cd meshmonk
uv pip install --system '.[dev,io]'
pytest tests/

Documentation

MATLAB Users

The MATLAB MEX interface has been removed in v0.1 as part of the Python-first rewrite (see ADR-001 D3).

For MATLAB support, use the KU Leuven MIRC fork: https://gitlab.kuleuven.be/mirc/meshmonk

Citing MeshMonk

If you use MeshMonk in your research, please cite:

White, J. D., Ortega-Castrillón, A., Matthews, H., Zaidi, A. A., Ekrami, O., Snyders, J., Fan, Y., Penington, T., Van Dongen, S., Shriver, M. D., & Claes, P. (2019). MeshMonk: Open-source large-scale intensive 3D phenotyping. Scientific Reports, 9, 6085. https://doi.org/10.1038/s41598-019-42533-y

@article{white2019meshmonk,
  title   = {MeshMonk: Open-source large-scale intensive 3D phenotyping},
  author  = {White, Julie D. and Ortega-Castrill{\'o}n, Alejandra and Matthews, Harold and Zaidi, Arslan A. and Ekrami, Omid and Snyders, Jonatan and Fan, Yi and Penington, Tony and Van Dongen, Stefan and Shriver, Mark D. and Claes, Peter},
  journal = {Scientific Reports},
  volume  = {9},
  pages   = {6085},
  year    = {2019},
  doi     = {10.1038/s41598-019-42533-y}
}

Machine-readable metadata is in CITATION.cff; GitHub shows it as "Cite this repository".

探索相关项目

加载中…