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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rapidmesh-0.3.1.tar.gz (622.8 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

rapidmesh-0.3.1-cp310-abi3-win_amd64.whl (1.5 MB view details)

Uploaded CPython 3.10+Windows x86-64

rapidmesh-0.3.1-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.6 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.17+ x86-64

rapidmesh-0.3.1-cp310-abi3-macosx_11_0_arm64.whl (1.4 MB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

rapidmesh-0.3.1-cp310-abi3-macosx_10_12_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.10+macOS 10.12+ x86-64

File details

Details for the file rapidmesh-0.3.1.tar.gz.

File metadata

  • Download URL: rapidmesh-0.3.1.tar.gz
  • Upload date:
  • Size: 622.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for rapidmesh-0.3.1.tar.gz
Algorithm Hash digest
SHA256 560c37337829d726e750c85da246aa475701fdedea0ec0be2f386241146df895
MD5 7141671de3c6c1c302dd65c56e6cf34c
BLAKE2b-256 68d971ab7158ec297fcdc21dfc6e56970554f0177384ec3d3aee3eef71a6d14a

See more details on using hashes here.

Provenance

The following attestation bundles were made for rapidmesh-0.3.1.tar.gz:

Publisher: publish.yml on milanofthe/rapidmesh

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file rapidmesh-0.3.1-cp310-abi3-win_amd64.whl.

File metadata

  • Download URL: rapidmesh-0.3.1-cp310-abi3-win_amd64.whl
  • Upload date:
  • Size: 1.5 MB
  • Tags: CPython 3.10+, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for rapidmesh-0.3.1-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 155cf80331e62b35d66934ffb5c7240b17e2dc8b93773c5ef105c1d7d5147fd0
MD5 a520bce124d363d736c5d3ae9b6b1e66
BLAKE2b-256 46b70262109d0c76191db7bdca7d639d38b14ae6c337256a5fd5d8d8fa16224d

See more details on using hashes here.

Provenance

The following attestation bundles were made for rapidmesh-0.3.1-cp310-abi3-win_amd64.whl:

Publisher: publish.yml on milanofthe/rapidmesh

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file rapidmesh-0.3.1-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for rapidmesh-0.3.1-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5fb4880297de693d26f9dba601bf33510309fcfc155d1013d9b3693f808b47db
MD5 872401a4a715faeea694da2553239fdf
BLAKE2b-256 6054d23007c95d817feff90fc497edb19cdbb4e1bad75b4df92eae7b52589320

See more details on using hashes here.

Provenance

The following attestation bundles were made for rapidmesh-0.3.1-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: publish.yml on milanofthe/rapidmesh

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file rapidmesh-0.3.1-cp310-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for rapidmesh-0.3.1-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 245f89c2e468670da015eb448933c64065fa6a7e242f1318143333519358b770
MD5 e55ac2510698549c93ff0f5c31efc50a
BLAKE2b-256 75a7566036e270a94c7fdf6274e6af0221ae082a1827cbb080499a05432ee9b0

See more details on using hashes here.

Provenance

The following attestation bundles were made for rapidmesh-0.3.1-cp310-abi3-macosx_11_0_arm64.whl:

Publisher: publish.yml on milanofthe/rapidmesh

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file rapidmesh-0.3.1-cp310-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for rapidmesh-0.3.1-cp310-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 99a4fe87a69976e58ff62ee6373318c9823cc67013a93a54a82d9960370dde3c
MD5 435817eb62ca6cb0aee291f1e9a1fee3
BLAKE2b-256 1e481e0d26d728d2ed26c9ed652959097994b4b98dd3e4819a63de675193ec17

See more details on using hashes here.

Provenance

The following attestation bundles were made for rapidmesh-0.3.1-cp310-abi3-macosx_10_12_x86_64.whl:

Publisher: publish.yml on milanofthe/rapidmesh

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page