Skip to main content

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.6.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rapidmesh 0.6.0
File Size Uploaded
rapidmesh-0.6.0.tar.gz 641.3 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for rapidmesh 0.6.0
File
rapidmesh-0.6.0-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details
rapidmesh-0.6.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.6.0-cp310-abi3-macosx_11_0_arm64.whl CPython 3.10 abi3 macOS 11.0+ ARM64 Details
rapidmesh-0.6.0-cp310-abi3-macosx_10_12_x86_64.whl CPython 3.10 abi3 macOS 10.12+ x86-64 Details

Total release size: 6.8 MB

Release files / rapidmesh-0.6.0.tar.gz

Download URL rapidmesh-0.6.0.tar.gz
Size 641.3 kB
Tags Source
SHA-256 checksum
How to use checksums
e533b4152b1cfa6638d315381ea24a825e691cbd0ddc35f0fef1ea97f1571189
BLAKE2b-256 checksum
How to use checksums
adbfadebc1ed6abad457360b93fa8062ff9255831c85bd1f9484c0619c3d6d2b
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

Release files / rapidmesh-0.6.0-cp310-abi3-win_amd64.whl

Download URL rapidmesh-0.6.0-cp310-abi3-win_amd64.whl
Size 1.6 MB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
8eecb0897538b71a96ebf764fc64c380d649d39da25ef56f6ffec26b2fe54325
BLAKE2b-256 checksum
How to use checksums
71d67f2fce9226ce7e269802eb2385a8308f410e2a62d880bdea963b194b3abf
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

Release files / rapidmesh-0.6.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL rapidmesh-0.6.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
d3cb62197ef633ffbf43be7b94d70302d9217d3efb2b0fcb05f026a20feab74c
BLAKE2b-256 checksum
How to use checksums
f88939a08553a1e0220070d440d137b0bd9c7bb0dc131e8a2baee391b8dc9820
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

Release files / rapidmesh-0.6.0-cp310-abi3-macosx_11_0_arm64.whl

Download URL rapidmesh-0.6.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
087b90baeabadac0f5351f2bdf7b6165bd614284385fbff7d26d4fdbea961c82
BLAKE2b-256 checksum
How to use checksums
82cf12f52a555faba589086d7e88ccd6b5a7d58c10185be661add6f7c05dfaab
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

Release files / rapidmesh-0.6.0-cp310-abi3-macosx_10_12_x86_64.whl

Download URL rapidmesh-0.6.0-cp310-abi3-macosx_10_12_x86_64.whl
Size 1.6 MB
Tags CPython 3.10 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
c9c9b915f3f7349e679e602988f4b15f8a3f14940ac16da195f068d790b93b14
BLAKE2b-256 checksum
How to use checksums
d9bfd1ea2b01bcffbe35349a5b4c8735dfc7cc80d89e270766e6946c0fc1bb4f
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

Release history Release notifications | RSS feed

2.0.0

5 release files

1.0.0

5 release files

This release

0.6.0 This release

5 release files

0.4.0

5 release files

0.3.1

5 release files

0.3.0

5 release files

0.2.1

5 release files

0.2.0

5 release files

0.1.0

5 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page