Skip to main content

Reggie the Rex: a T-rex surface meshed into tetrahedra, layers revealed from the inside out

admesh3D

Tetrahedral meshing of signed-distance-function domains and sigma-layer prism extrusion, in the ADMESH family.

PyPI Python License Release DOI

Table of Contents

Status & Roadmap

Experimental prototype, version 0.1.1 (pre-alpha). The API may change without notice.

  • Now: first tagged release; tetrahedra from a signed distance function (3D DistMesh), sigma-layer prisms, quality report, ASCII .vtu output.
  • Next: API review after first user feedback (no date).
  • Later: one ecosystem with ADMESH, CHILmesh and QuADMESH.

Installation

pip install admesh3D            # import name: admesh3d
pip install "admesh3D[admesh2d]"  # optional link to the 2D generator

Requires Python 3.10+, numpy and scipy. From a clone: pip install -e ".[test]" && pytest -q.

Quick start

import admesh3d as am

m = am.tetrahedralize(am.Box((0,0,0),(1,1,1)), h_max=0.1)
print(m.quality_report())
m.to_vtu("cube.vtu")               # open in ParaView

ball = am.Sphere((0,0,0), 1.0) - am.Cylinder((0,0,0), 0.3, 3.0)
am.tetrahedralize(ball, h_min=0.1, h_max=0.15).to_vtu("ball.vtu")

import numpy as np
nodes = np.array([[0,0],[1,0],[1,1],[0,1]], float)
tris  = np.array([[0,1,2],[0,2,3]])
p = am.extrude(nodes=nodes, triangles=tris, depth=np.full(4,10.0), layers=5)
assert p.n_elements == 10 and p.n_nodes == 24
assert abs(p.volumes.sum() - 10.0) < 1e-9

Examples

The hero animation above shows a T-rex surface filled with tetrahedra; element layers are revealed from the innermost layer outward. The test suite under tests/ holds one runnable case per feature.

Limitations

  • Prototype: no stability guarantee, no production use.
  • DistMesh relaxation is iterative and serial; large domains are slow, and the quality report does not guarantee a minimum element quality.
  • Input domains are signed distance functions or extruded 2D triangle meshes. Arbitrary CAD surfaces and STL files are not read.
  • Output is ASCII .vtu only. No ADCIRC 3D file format is written.
  • The admesh2D link is optional and tested only by a smoke test.

Citation

Cite the concept DOI, which always resolves to the latest release: 10.5281/zenodo.24043645.

@software{mattioli_admesh3d,
  author  = {Mattioli, Dominik O.},
  title   = {admesh3D: experimental 3D mesher in the ADMESH family},
  year    = {2026},
  url     = {https://github.com/domattioli/admesh3D},
  doi     = {10.5281/zenodo.24043645},
  version = {0.1.1}
}

License

PolyForm Noncommercial License 1.0.0. Commercial use needs a separate license; contact via github.com/domattioli.

Metadata

Release files for admesh3D 0.1.1

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

Source distribution (sdist)

Source distribution for admesh3D 0.1.1
File Size Uploaded Provenance Actions
admesh3d-0.1.1.tar.gz 18.2 kB With provenance Details for admesh3d-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for admesh3D 0.1.1
File Interpreter ABI Platform Actions
admesh3d-0.1.1-py3-none-any.whl Python 3 none any Details for admesh3d-0.1.1-py3-none-any.whl

Total release size: 38.4 kB

Release files / admesh3d-0.1.1.tar.gz

Download URL admesh3d-0.1.1.tar.gz
Size 18.2 kB
Tags Source
SHA-256 checksum
How to use checksums
edca21c42bd35d3763db875cf97ea4d6084de1165f54efa8d589b8b66e371f92
BLAKE2b-256 checksum
How to use checksums
24c0385a4af5fe9138968f74a6ea2a8ffe032bd37f1e847a67f121a9efa2a0a6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 7, 2026.

Transparency log

Release files / admesh3d-0.1.1-py3-none-any.whl

Download URL admesh3d-0.1.1-py3-none-any.whl
Size 20.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4060a91abf3434f2855d82285cdd6299d251db7ac20d9851d6ad2cd108d90dbb
BLAKE2b-256 checksum
How to use checksums
4e6a34fbc7d0a057d0c4598e9039c44df3e5bd522385648492478229616ff2c2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 7, 2026.

Transparency log

Security for admesh3D 0.1.1

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for admesh3d-0.1.1.tar.gz

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 Nov 7, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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