meshioplusplus
meshio++: I/O for many mesh formats (C++20 core + Python bindings)
What it is and what it does
meshioplusplus is a mesh file I/O library that reads and writes unstructured mesh data in dozens of scientific and engineering formats—including STL, VTK, Gmsh, CGNS, Exodus, Nastran, OpenFOAM, and many others. It provides seamless conversion between formats and includes a command-line tool for mesh manipulation (merge, transform, refine, partition, interpolate, slice, and more). The package ships a C++20 core built with pybind11 and scikit-build-core that achieves zero-copy numpy integration at the I/O boundary, with optional HDF5 and netCDF acceleration and a selectable parallel backend (OpenMP, STL+TBB, or sequential by default). Every format also has a pure-Python fallback, so behavior and file compatibility are identical whether or not native libraries are present.
The library is designed for researchers and engineers working with finite element meshes, computational fluid dynamics, and other simulation workflows. It depends on numpy for array handling, rich for terminal output, and importlib_metadata for version introspection. Pre-built wheels are available for modern Python versions (3.9–3.12) across macOS, Linux, and Windows, making installation straightforward for most users.
Use it for:
- Convert mesh files between incompatible formats (e.g., Gmsh to VTK) in a simulation pipeline.
- Load mesh data from scientific solvers into Python for post-processing and visualization.
- Merge, refine, or partition large meshes using the command-line interface without writing custom code.
- Transfer field data (temperature, pressure, etc.) across different mesh representations.
- Generate signed distance fields or isosurfaces from mesh geometry for level-set methods.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
meshioplusplus reads and writes mesh files in dozens of formats (STL, VTK, Gmsh, CGNS, Exodus, and many others) and converts between them, with a C++20 core that provides zero-copy numpy integration at the I/O boundary.
Yes, if you work with mesh files in scientific computing or engineering. The library supports an extensive range of formats, integrates cleanly with numpy workflows, and offers both programmatic and CLI access. Medium install friction is offset by pre-built wheels and active maintenance. No known vulnerabilities and permissive MIT licensing remove barriers to adoption.
Install
meshioplusplus on PyPI
pip
pip install meshioplusplusuv
uv add meshiopluspluspoetry
poetry add meshioplusplusInstalling meshioplusplus
Before you install
Medium install friction due to compiled C++20 bindings, but pre-built wheels cover Python 3.9–3.12 on macOS (arm64, x86_64), Linux (aarch64, x86_64), and Windows (amd64). Active maintenance with a release 8 days ago.
License in practice
MIT license (permissive) allows commercial and private use with attribution. No restrictions on modification or redistribution.
Quickstart
pip install meshioplusplus
import meshioplusplus as mio
mesh = mio.read('input.msh')
mio.write('output.vtk', mesh)
Requires Python 3.8 or later. Optional dependencies (HDF5, netCDF, Kokkos) unlock format acceleration but are not required for basic I/O.
Verify before relying
- Performance characteristics and memory overhead compared to direct C++ usage or other mesh libraries.
- Completeness of pure-Python fallback implementations for all supported formats.
- Stability and API compatibility guarantees across minor versions.
Package facts
| License | The MIT License (MIT) Copyright (c) 2015-2021 Nico Schlömer et al. Copyright (c) 2026 Vicente Mataix Ferrándiz Permission is hereby granted, free of charge, to any person obtaining a copy of this… (full text in the JSON record) (permissive) |
| Python support | supports the current Python release (>=3.8) |
| Install friction | medium — platform-specific wheel |
| Runtime dependencies | 3 — importlib_metadata, numpy, rich |
| Maintenance | actively maintained — 8 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 83,805/month — #14,046 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: meshioplusplus-10.0.0-cp310-cp310-macosx_13_0_arm64.whl; meshioplusplus-10.0.0-cp310-cp310-macosx_13_0_x86_64.whl; meshioplusplus-10.0.0-cp310-cp310-manylinux_2_34_aarch64.whl; meshioplusplus-10.0.0-cp310-cp310-manylinux_2_34_x86_64.whl; meshioplusplus-10.0.0-cp310-cp310-win_amd64.whl; meshioplusplus-10.0.0-cp311-cp311-macosx_13_0_arm64.whl; meshioplusplus-10.0.0-cp311-cp311-macosx_13_0_x86_64.whl; meshioplusplus-10.0.0-cp311-cp311-manylinux_2_34_aarch64.whl; meshioplusplus-10.0.0-cp311-cp311-manylinux_2_34_x86_64.whl; meshioplusplus-10.0.0-cp311-cp311-win_amd64.whl; meshioplusplus-10.0.0-cp312-cp312-macosx_13_0_arm64.whl; meshioplusplus-10.0.0-cp312-cp312-macosx_13_0_x86_64.whl; meshioplusplus-10.0.0-cp312-cp312-manylinux_2_34_aarch64.whl; meshioplusplus-10.0.0-cp312-cp312-manylinux_2_34_x86_64.whl; meshioplusplus-10.0.0-cp312-cp312-win_amd64.whl; meshioplusplus-10.0.0-cp39-cp39-macosx_13_0_arm64.whl; meshioplusplus-10.0.0-cp39-cp39-macosx_13_0_x86_64.whl; meshioplusplus-10.0.0-cp39-cp39-manylinux_2_34_aarch64.whl; meshioplusplus-10.0.0-cp39-cp39-manylinux_2_34_x86_64.whl; meshioplusplus-10.0.0-cp39-cp39-win_amd64.whl
Keywords: mesh, file formats, scientific, engineering, fem, finite elements
Tags
More Scientific/Engineering packages
NumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
pandaspandas provides fast, flexible data structures…
permissive · top 100 on PyPI
scipyscipy provides numerical algorithms for…
permissive · top 100 on PyPI
scikit-learnscikit-learn provides a comprehensive Python…
permissive · top 1,000 on PyPI
dilldill extends Python's pickle module to…
permissive · top 1,000 on PyPI
multiprocessMultiprocess is an enhanced fork of Python's…
permissive · top 1,000 on PyPI
meshioReads and writes mesh files in dozens of…
permissive · top 5,000 on PyPI
numpy-stlReads, writes, and modifies STL mesh files…
permissive · top 15,000 on PyPI
pygmshpygmsh provides a Python interface to Gmsh, a…
copyleft · top 15,000 on PyPI
plyfileplyfile reads and writes ASCII and binary PLY…
copyleft · top 5,000 on PyPI
gmshGmsh is a three-dimensional finite element mesh…
copyleft · top 15,000 on PyPI
pysplashsurfpySplashsurf provides Python bindings for…
permissive · top 15,000 on PyPI
lib3mflib3mf reads, writes, and validates 3D…
permissive · top 15,000 on PyPI
DracoPyDracoPy is a Python wrapper for Google's Draco…
permissive · top 15,000 on PyPI
pymeshfixPyMeshFix repairs triangular meshes by removing…
agpl · top 15,000 on PyPI
pypcd4pypcd4 reads, writes, and manipulates Point…
permissive · top 15,000 on PyPI