MeshKit#
Mixed triangle and quadrilateral meshing with terrain certificates — Python package.
MeshKit builds two-dimensional meshes from source points and constraint paths:
constrained Delaunay triangles, or mixed meshes with mapped quadrilateral patches
and triangle infill. Sizes follow a global limit, local size fields and an
optional terrain tolerance checked against a raster. Every job returns a report
that says whether each requirement was met, and meshes are read and written as
lossless MeshKit binary (.mkb) or SMS 2DM files.
The meshkit package wraps the Qt-free C++ library. Jobs run on native
worker threads without the GIL, results are owned read-only buffers that NumPy
can share without copying, and NumPy itself is optional.
python -m pip install hydrocouple.meshkit
The distribution is named hydrocouple.meshkit; the package imports as
meshkit.
Where to start#
Mesh a square with a quadrilateral region, read the report and save the result.
Points, paths, sizing options, quadrilateral regions and terrain.
Result buffers, ownership, job status and progress events.
Every function and type, generated from the package and its type stub.
Project at a glance#
Audience |
Modellers and developers who need conforming 2D meshes for hydrodynamic and other simulations. |
Language |
Python ≥ 3.10; NumPy optional. |
Wheels |
CPython 3.10–3.13 on Linux (x86_64, aarch64), macOS (arm64, x86_64) and Windows (x64). |
Build system |
setuptools + CMake; a C++17 compiler for source builds. |
License |
Apache License, Version 2.0. |