pypi i MeshPy


Triangular and Tetrahedral Mesh Generator

by Andreas Kloeckner

2022.1.3 (see all)License:MIT for the wrapper/non-commercial for the Triangle/GNU Affero Public License for TetGen
pypi i MeshPy

MeshPy: Simplicial Mesh Generation from Python

.. image:: :alt: Gitlab Build Status :target: .. image:: :alt: Github Build Status :target: .. image:: :alt: Python Package Index Release Page :target: .. image:: :alt: Zenodo DOI for latest release :target:

MeshPy offers quality triangular and tetrahedral mesh generation for Python. Meshes of this type are chiefly used in finite-element simulation codes, but also have many other applications ranging from computer graphics to robotics.

In order to generate 2D and 3D meshes, MeshPy provides Python interfaces to three well-regarded mesh generators, Triangle <> by J. Shewchuk, TetGen <> by Hang Si The former two are included in the package in slightly modified versions. A generic mesh reader for the latter is included, as is an easy way to run gmsh from a Python script.

For an interface to gmsh <>_ by Christophe Geuzaine and Jean-Francois Remacle, see gmsh_interop <>__.

MeshPy has no dependencies other than a C++ compiler, pybind11 <>_, and a working Python installation. Before installing meshpy, you may install pybind11 using the command::

pip install pybind11

Online resources

  • Home page <>_
  • Documentation <>_
  • Source <>_
  • Package index <>_
  • Discussions <>_