Skip to content

inducer/meshpy

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.

MeshPy: Simplicial Mesh Generation from Python

Gitlab Build Status Github Build Status Python Package Index Release Page Zenodo DOI for latest release

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