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.0.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.0-cp310-abi3-win_amd64.whl (1.6 MB view details)

Uploaded CPython 3.10+Windows x86-64

rapidmesh-0.3.0-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.0-cp310-abi3-macosx_11_0_arm64.whl (1.4 MB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

rapidmesh-0.3.0-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.0.tar.gz.

File metadata

  • Download URL: rapidmesh-0.3.0.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.0.tar.gz
Algorithm Hash digest
SHA256 39d39ed788ad0a3e401752efeae88e57b31201129361df1853c8305097768a0b
MD5 b97b1831bf2046059cf917984dd27823
BLAKE2b-256 c11e72a0b63b01880aa7a5460d6633506d1cee4927712c7cb2b9685fce863cf9

See more details on using hashes here.

Provenance

The following attestation bundles were made for rapidmesh-0.3.0.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.0-cp310-abi3-win_amd64.whl.

File metadata

  • Download URL: rapidmesh-0.3.0-cp310-abi3-win_amd64.whl
  • Upload date:
  • Size: 1.6 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.0-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 3cfe51667f21f46762fefd5cad9eb6d1fffa59478f924ecfee27aaad74c79471
MD5 03a3f7c6b0ac74fb8b189d69d99b4619
BLAKE2b-256 31aa1ae080062b32c7cc5e9284271e6be50ba09ecc1f616727409c7f8108341f

See more details on using hashes here.

Provenance

The following attestation bundles were made for rapidmesh-0.3.0-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.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for rapidmesh-0.3.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5e83d8f6cccdd365a38f481f81919636dbf7cfe716547eccc82630fe75af6ae6
MD5 a6773514aea99b18754a974393376e13
BLAKE2b-256 b19096849926b9b5f1a5193f420afd58aca399ce967af977d706768d14fbe8c8

See more details on using hashes here.

Provenance

The following attestation bundles were made for rapidmesh-0.3.0-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.0-cp310-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for rapidmesh-0.3.0-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 64824273536209d74c7dd247bd106bc034d4d53fa40837caea05378af3b5ebcf
MD5 5946fa33f2ce31ffcc46b5b44d190b2e
BLAKE2b-256 eecf746378c8a2024829c16e66bfb6ebc901ecf580657b36499156e4701f49be

See more details on using hashes here.

Provenance

The following attestation bundles were made for rapidmesh-0.3.0-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.0-cp310-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for rapidmesh-0.3.0-cp310-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 14d8d3fd47c6018162a4c10d3988199fdfc5428ddf451242c6d02478ccf1e981
MD5 c9e6dae370261166d0fb4092bb0be6f9
BLAKE2b-256 f5d6cca7407682abcf0f992800bf4f366096bea20ba8cc7477fae7443806f16e

See more details on using hashes here.

Provenance

The following attestation bundles were made for rapidmesh-0.3.0-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