ras-commander-fast-mesh
Standalone Rust mesh generation for HEC-RAS 7.x projects. Experimental, research-stage software: not for regulatory or design use without independent review of every result.
Two planned modes share one topology model and one 7.x export backend:
legacy_701: recreate the documented cell-centric HEC-RAS 7.0.1 meshing behavior.face_centric: recreate the documented RAS2025 conceptual/face-centric meshing behavior, targeting 7.x output only.
Neither mode requires HEC-RAS, Python, GDAL, or RAS Commander to generate meshes. RAS2025 is an algorithm reference, not an output target. Exact mesh equivalence is a research objective, not an established capability. legacy_701 v3 follows HEC-RAS 7.0.1's mesh construction and its triangulation order, enforcing breaklines and structure lines, and RAS Mapper 7.0.1's seed generation. From HEC-RAS's stored seeds it reproduces all 29 reference areas, 5 new HEC-RAS 7.0.1 test areas and two eBFE-derived areas (191,810 and 1,511,766 cells) exactly cell for cell. On every RAS Mapper 7.0.1-generated test area its seeds match RAS Mapper's in order. A 1.5M-cell area meshes in about 30 s. legacy_701 v4 also numbers the mesh as HEC-RAS 7.0.1 does: faces, facepoints, ghosts, face directions and facepoint fans. It emulates the x87 arithmetic Ras.exe uses for areas of up to 5500 cells. On 35 reference areas every HDF connectivity and coordinate table is byte-identical to HEC-RAS's. Through HEC-RAS 7.0.1, locked mesh output on Muncie and BaldEagle g10 gives preprocessed geometry and plan results byte-identical to HEC-RAS's own mesh. See legacy-mesher for the evidence and the open gaps. mesh --repair (opt-in) ports RAS Commander's seed and perimeter repairs; on the 1.5M-cell eBFE area and RAS Commander's repaired test areas it makes RAS Commander's decisions (see mesh-repair). A HEC-RAS 7.x geometry HDF writer (feature hdf5) exports 2D meshes; HEC-RAS 7.0.1 keeps an exported mesh when the area is locked (see hdf-writer).
See research, architecture, roadmap, and the HDF schema inventory.
Every known gap (residuals, unmodelled and unqualified behaviour, limits, infrastructure and RAS Commander dependencies) is registered in known gaps, one GitHub issue per gap (label known-gap).
On the integrated legacy-701-integration branch (v5, line crossings, exact seed generation and repair), every HEC-RAS 7.0.1 corpus area except one is byte-identical from its stored seeds. From geometry text, mesh --seeds generated --repair reproduces RAS Commander's GeomMesh.generate seeds and repairs, and HEC-RAS 7.0.1's mesh byte for byte, on every corpus area whose seeds came from it, including the 1.5M-cell eBFE area. Corpus qualification against HEC-RAS 7.0.1 (HEC 7.0 examples and eBFE models, 11 to 1,511,766 cells) and timing: corpus-results and benchmarks.
Current capability: a shared topology model and an in-memory derivation of 7.x connectivity tables. It also provides an independent mesh validator and conformance checks against HEC-RAS-written reference meshes.
cargo test --locked
python -I tools/export_reference_fixture.py <geometry.g##.hdf> <fixture_dir> # read-only; needs h5py
cargo run --release -- conform <fixture_dir>/<file>.json
cargo run --release -- validate <fixture_dir>/<file>.json
cargo run --release -- legacy-compare <fixture_dir>/<file>.json # schema v2-v4 fixtures
cargo run --release -- legacy-compare <fixture.json> --seeds generated # mesh from RAS Mapper 7.0.1 seed rules
cargo run --release -- legacy-compare <fixture.json> --seeds centers # mesh from HEC's cell centres (its TIN input)
cargo run --release -- legacy-compare <fixture.json> --enforce-region-boundaries # RAS Mapper's own line set
cargo run --release -- legacy-compare <fixture.json> --hec-host ras-mapper # RAS Mapper's (64-bit) arithmetic; default ras-exe
cargo run --release -- settings <geometry.g##> # parsed 2D mesh settings
FAST_MESH_REFERENCE_DIR=<fixture_dir> cargo test --locked # corpus conformance
cargo run --release --features hdf5 -- export <g##.hdf|fixture.json> --area <name> --out <file.hdf> [--into <g##.hdf>] [--locked]
Python packaging: pyproject.toml builds a maturin bindings = "bin" wheel that installs the
ras-commander-fast-mesh executable with the hdf5 feature. RAS Commander would drive it as a
subprocess (--version, capabilities, --json-errors, mesh). Nothing is published. See
integration.
python -I tools/netpow/build_netpow32.py # Windows: the pinned netpow32.exe, built reproducibly
python -I scripts/stage_wheel_data.py # wheel .data: that helper on Windows, empty elsewhere
python -m maturin build --release --out dist # maturin 1.16.0; needs CMake and a C compiler
python -m pip install --no-index --no-deps --find-links dist ras-commander-fast-mesh
python -I tools/smoke_engine_wheel.py
Keep fixtures outside the repository.
Known limitations
- Short, strongly curved RAS2025 channel regions can fail to mesh (FC-05, #45). In a stress run, 3 of 120 random single-region channels, 1.5 to 2.3 widths long with a meander amplitude of 1.3 to 1.5 widths, failed on both quad paths with a folded or non-convex cell. Whether RAS2025 meshes them is not known.
- On Linux and other non-Windows hosts,
mesh --out-dirpublishing is not race-free (EXP-05, #62). The project copy is published with one directory rename. POSIXrenamereplaces an empty directory that another process creates at the destination after the preflight check. Windows refuses it.
Every other gap (parity residuals, limits, infrastructure) is in known gaps.
License
MIT; see LICENSE. Bundled third-party components are listed in THIRD_PARTY_NOTICES.md.
RAS Commander and this engine are independent open-source projects. They are not affiliated with, endorsed by or supported by the U.S. Army Corps of Engineers Hydrologic Engineering Center (HEC).
Metadata
Release files for ras-commander-fast-mesh 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ras_commander_fast_mesh-0.1.0-py3-none-win_amd64.whl | Python 3 | none | Windows x86-64 | Details for ras_commander_fast_mesh-0.1.0-py3-none-win_amd64.whl |
| ras_commander_fast_mesh-0.1.0-py3-none-manylinux_2_28_x86_64.whl | Python 3 | none | Linux glibc 2.28+ x86-64 | Details for ras_commander_fast_mesh-0.1.0-py3-none-manylinux_2_28_x86_64.whl |
Total release size: 13.0 MB
Release files / ras_commander_fast_mesh-0.1.0-py3-none-win_amd64.whl
| Download URL | ras_commander_fast_mesh-0.1.0-py3-none-win_amd64.whl |
|---|---|
| Size | 7.4 MB |
| Tags | Python 3 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
135ee55ec4f7eaa0bda3f8ca18e70be18d8f7bd8d0243694b9379331ef694163
|
|
BLAKE2b-256 checksum How to use checksums |
c7efa418a0ef5772cfa0dfa0fad57a28c58a119f09da04683f50d54a09126fd2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / ras_commander_fast_mesh-0.1.0-py3-none-manylinux_2_28_x86_64.whl
| Download URL | ras_commander_fast_mesh-0.1.0-py3-none-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 5.6 MB |
| Tags | Linux glibc 2.28+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
c28ad44ef1896d5811bfe4fd32ea65758ef308a77557ab36e21f7b7cb7b095a0
|
|
BLAKE2b-256 checksum How to use checksums |
d24022d1b19a6a55eacc5ac15fe1d7ca63231ecb9320a8f204de8a22c8939c87
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Security for ras-commander-fast-mesh 0.1.0
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.