rapidmesh
Pure-Rust conforming tetrahedral mesh generator for 3-D electromagnetic FEM (Maxwell, H(curl)/Nédélec), with a Python builder API.
- Primitives + exact CSG booleans — boxes, cylinders, spheres, cones, tori, prisms, sweeps, lofts; unioned/subtracted by an exact mesh arrangement (no float snapping, material interfaces stay exactly conforming).
- Constrained Delaunay tetrahedralization with exact boundary recovery.
- Sizing-field-driven refinement and dihedral-angle-targeted optimization.
- Observability — per-stage timings, statistics, a leveled log, and quality with location, all from Python.
Install
pip install rapidmesh
Usage
import rapidmesh as rm
g = rm.Geometry(maxh=0.4)
g.box(4, 4, 2) # air / substrate box
g.cylinder(radius=0.8, height=2, position=(2, 2, 0), void=True) # a bore
mesh = g.mesh()
print(mesh) # Mesh(... tets, ... points, min dihedral ... deg)
mesh.points # (n_points, 3) float64
mesh.tets # (n_tets, 4) uint64
mesh.tet_regions # (n_tets,) region tag per tet
mesh.faces # (n_faces, 3) surface faces (region interfaces, sheets)
What happened, how long, and where the quality is worst
print(mesh.report()) # per-stage timings + quality-with-location + warnings
mesh.timings # {"mesh.faces": 0.42, "mesh.refine": 0.16, ...} seconds
mesh.metrics # predicate counts, recovery work, point/tet counts
mesh.quality # min_dihedral_deg, worst_location, worst_region, regions[]
mesh.log # [{level, stage, message, at}, ...]
mesh.warnings # the warn/error subset (budget caps, slivers)
Set RAPIDMESH_LOG=1 in the environment to stream the log live to stderr
(including per-refinement-round progress, so you can see what is running and
where it spends or hangs time).
License
MIT
Metadata
Release files for rapidmesh 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| rapidmesh-0.4.0.tar.gz | 637.8 kB | Details |
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| rapidmesh-0.4.0-cp310-abi3-win_amd64.whl | CPython 3.10 | abi3 | Windows x86-64 | Details |
| rapidmesh-0.4.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl | CPython 3.10 | abi3 | Linux glibc 2.17+ x86-64 | Details |
| rapidmesh-0.4.0-cp310-abi3-macosx_11_0_arm64.whl | CPython 3.10 | abi3 | macOS 11.0+ ARM64 | Details |
| rapidmesh-0.4.0-cp310-abi3-macosx_10_12_x86_64.whl | CPython 3.10 | abi3 | macOS 10.12+ x86-64 | Details |
Total release size: 6.7 MB
Release files / rapidmesh-0.4.0.tar.gz
| Download URL | rapidmesh-0.4.0.tar.gz |
|---|---|
| Size | 637.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8e136a618857d37481bc08007b5494994832c76b66de2f540da7fc8d292af2be
|
|
BLAKE2b-256 checksum How to use checksums |
3dcfdcd70f8f5c5c9ef1e55b0dcfc774db9ceb6b110c7481079b53c212cf31b9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 20, 2026.
Transparency logRelease files / rapidmesh-0.4.0-cp310-abi3-win_amd64.whl
| Download URL | rapidmesh-0.4.0-cp310-abi3-win_amd64.whl |
|---|---|
| Size | 1.5 MB |
| Tags | CPython 3.10 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
7e7345e2a82f29958d185cdccc1ad1ccb4e141aef451345d0d81450ac0350144
|
|
BLAKE2b-256 checksum How to use checksums |
f2a302855f13a0c782bb92b49f1f8d11d65c378a6962b85af6ee2621bdc2143b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 20, 2026.
Transparency logRelease files / rapidmesh-0.4.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | rapidmesh-0.4.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 1.6 MB |
| Tags | CPython 3.10 Linux glibc 2.17+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
17bd4dae231f2a6f23b2caf469fe8080137fa471e5dea3105741a8afe3ac0e53
|
|
BLAKE2b-256 checksum How to use checksums |
76b446e23e2890afeff105aa778a9e104d569c63e0a6bb459fa9eeab4086c4c3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 20, 2026.
Transparency logRelease files / rapidmesh-0.4.0-cp310-abi3-macosx_11_0_arm64.whl
| Download URL | rapidmesh-0.4.0-cp310-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 1.4 MB |
| Tags | CPython 3.10 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
aafc807bfb2c56c27f9a31c588fb42a9d39232894497765beff4b6d6307d93fd
|
|
BLAKE2b-256 checksum How to use checksums |
8c9b74f8bd43ac43e125516e895139b09d8cf8ba009d74414bcedadcb882be7b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 20, 2026.
Transparency logRelease files / rapidmesh-0.4.0-cp310-abi3-macosx_10_12_x86_64.whl
| Download URL | rapidmesh-0.4.0-cp310-abi3-macosx_10_12_x86_64.whl |
|---|---|
| Size | 1.5 MB |
| Tags | CPython 3.10 abi3 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
227f99d9f8dc43b7bd2e2944dc5359bbe6d9ff9784eae2634e5ad339aef7bc2f
|
|
BLAKE2b-256 checksum How to use checksums |
381b42ba0ab18e6b788a4654877f7185c299387127aca21f7d499aeccca93848
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 20, 2026.
Transparency log