Repository navigation
fix(ifc): a column that a joined slab or roof cuts is exported as its cut body (RE-178) - #757
Merged
Merged
Conversation
… cut body (RE-178) A column's geometry node holds its extent after geometry joins in the box at id-48. Where every copy of the node, in every partition, agrees on that z-range and it lies inside the column's own extent, the IFC body takes it: the extrusion depth is the cut height and a body that starts higher is placed above the column's base. The placement, storeys, m_locationZ, m_bboxHeight and BoundingBoxHeight keep the column's own extent. On the public 2024 samples and BIM4LCA files, 272 of 276 cut columns now equal Revit's exported body, none regress; the 4 left have node copies that disagree. Test: tests/column_cut_body.rs.
# Conflicts: # corpus/tier2/README.md # src/partition_column_nodes.rs # src/partition_schema_mvp.rs # tests/integration/main.rs # tools/ci/test-targets.txt
DrunkOnJava
enabled auto-merge (squash)
October 18, 2026 09:00
This was referenced Oct 18, 2026
DrunkOnJava
added a commit
that referenced
this pull request
Oct 18, 2026
[Unreleased] becomes [0.5.0] — 2026-10-18, with an introduction, the contributors, and what to change when upgrading from 0.4. The community pull requests' entries are added and credited (#737, #738, #744, #751, #752, #753, #755, #757, #758), and the repeated Added, Changed, Fixed and Research headings are folded into one each, keeping every entry (107) and its order; everything from [0.4.0] down is unchanged. CITATION.cff said 0.1.2 (2026-04-20), though RELEASE.md has it agree with Cargo.toml at every tag. Its abstract now describes the project as the README does, without the "first open-source tool" and "verified against 11 releases" claims.
DrunkOnJava
added a commit
that referenced
this pull request
Oct 18, 2026
## Summary Prepare v0.5.0. Merging this is not the release: the release is the signed `v0.5.0` tag on the merged commit, which runs `publish.yml` (crates.io, PyPI, the release binaries and the container image). The tag waits for the maintainer's go-ahead. ## Motivation `main` is 0.4.0 plus everything under `[Unreleased]`: Revit 2026 projects (experimental), MEP ports, connections and systems, Revit's level, category, family, type and phase properties, rooms aggregated into their storeys, Snowdon Towers exporting again, and the first pull requests from outside contributors. Before 1.0 a breaking change bumps the minor version, and these are breaking for a 0.4 user: - The MSRV is 1.87 (was 1.85). - `rvt` has no `wasm` feature; the bindings are the `rvt-wasm` crate (C6). - Each `IfcSpace` is aggregated into its storey instead of contained in it (#744). - `ElemTableHeader::record_count` is a `u32` (#764). - Type objects take Revit's GlobalIds (RE-167). ## Changes - **Versions 0.4.0 → 0.5.0:** `rvt`, `rvt-py` and its pin, `rvt-wasm`, the `stream_evidence` pin, both lockfiles (only the workspace crates' version lines change), `.release-please-manifest.json` and `viewer/package.json`. - **`CHANGELOG.md`:** `[Unreleased]` becomes `[0.5.0] — 2026-10-18`. - An introduction, the contributors, and an **Upgrading from 0.4** section. - The community pull requests' entries are added and credited (#737, #738, #744, #751, #752, #753, #755, #757, #758). - The repeated Added, Changed, Fixed and Research headings, which later merges had appended, are folded into one each. All 107 entries are kept as written (checked as a multiset) and in their order, and everything from `[0.4.0]` down is byte-identical. - #778's clean-room policy change is added under Changed, so the section has 108 entries. - **`CITATION.cff`:** it said 0.1.2 (2026-04-20), though `RELEASE.md` has it agree with `Cargo.toml` at every tag. Its abstract now describes the project as the README does, without the "first open-source tool" and "verified against 11 releases" claims. - **Registry descriptions:** crates.io showed 0.4.0's description, which leaves out Revit 2023, and PyPI one that called element extraction and geometry "active research" and the export "document-level IFC4 scaffolding". `Cargo.toml` and `pyproject.toml` now say what the README says: typed elements from Revit 2023 to 2025 projects, 2026 experimental. - **Witnesses:** the IFC header carries the version (#417), so both Core Interior `rvt-rs.json` observations and their verdicts are refreshed from this pull request's CI run. ## Testing - CI on this pull request: every job `CI passed` requires, the witness replays among them. - On the tag, the publish workflow runs its own checks before anything is published: wheel install and model open on each OS, `cargo install` and the CLI sample smoke, the docs.rs build preview and the viewer load smoke. crates.io and PyPI publish only after all of them pass, and PyPI only after crates.io. ## Audit-honesty checklist - The docs keep describing 0.4.0 as the latest release until each 0.5.0 channel has been checked from what was published. That follows in a separate pull request (`docs/install.md`, `docs/python.md`, `docs/status.md`, `docs/supported-profile.md` and the README's release section). - crates.io's trusted publisher (repository DrunkOnJava/rvt-rs, workflow `publish.yml`, environment `crates-io`) has to be in place before the tag, as `docs/maintaining.md` says; it is a registry-side setting this repository cannot check. ## Legal and contribution hygiene N/A: release metadata only. Contributors are credited by their GitHub names in the CHANGELOG. ## Breaking changes Listed under Motivation, with the migration for each in the CHANGELOG's **Upgrading from 0.4**.
This was referenced Oct 18, 2026
DrunkOnJava
added a commit
that referenced
this pull request
Oct 18, 2026
…ed (#766) (#789) ## Summary CI's tier-two job reads the BIM4LCA models its targets need, by byte range from VTT's `ARCH.zip`, so four targets that skipped in CI now run on every pull request (#766, second item). ## Motivation Several of this month's fixes were measured on VTT's BIM4LCA example buildings (CC BY-SA 4.0). Their targets skip without `RVT_NORDIC_LCA_DIR`, which CI never set. A regression on those files would therefore pass CI, as #736 did on Snowdon. The targets are `level_parameters` (#751), `level_shared_elevation` (#752), `column_node_z` (#753) and `column_cut_body` (#757). ## Changes - **`tools/ci/fetch-bim4lca.py`** (stdlib Python): - reads the archive's central directory from its last MiB; - for each pinned entry, reads the local header for the data offset, range-fetches the compressed bytes and inflates them as they arrive; - checks each file's size and sha256 against its pin. - A 200 answer to a range request, or an archive size other than the pinned 1,579,459,850 bytes, stops it as stale. - Exit codes: 0 when all files verify, 1 for a stale pin, 2 for an unreachable host after five tries. - `--pin` prints pin rows. - **`research/bim4lca-models.tsv`:** the archive and five entries, 286 MB: four Revit 2024 models and Revit's IFC export of Housing_Terrain-Concrete. - **`.github/workflows/ci.yml`**, tier-two job: - restores `_bim4lca` from a cache keyed on the pins file and fetches on a miss; - sets `RVT_NORDIC_LCA_DIR` only when all five verified; - reports a **NOT MEASURED** warning when the host is unreachable (the targets then skip visibly) and fails on a stale pin; - saves the cache from `main` only, so pull requests restore `main`'s copy rather than each storing 286 MB. - **Docs:** `corpus/tier2/README.md`, a BIM4LCA section in `docs/reference-models.md`, and a Research entry in `CHANGELOG.md`. ## Testing - **Pins:** the range reader's output for the five entries equals the hashes measured earlier on a full download of the archive, as recorded in `corpus/tier2/README.md`: `3df759b8…`, `c6b53726…`, `74712000…`, `23675d6c…` and the IFC's `c3946ee4…`. - **This pull request's tier-two run** ([job 117734636435](https://github.com/DrunkOnJava/rvt-rs/actions/runs/39147646493/job/117734636435)): - The cache missed, as it does before `main` has saved one. The fetcher read the five files by range in about 8 seconds, `[verified]` each, and set `RVT_NORDIC_LCA_DIR`. - The four targets ran and passed, with no "skipping" line: - `column_cut_body::nordic_office_concrete_columns_stop_at_the_slab` (11.0 s) - `column_node_z::nordic_housing_concrete_column_z_is_revits` (8.5 s) - `level_shared_elevation::nordic_housing_timber_keeps_its_storeys` (1.2 s) - `level_parameters::nordic_housing_terrain_levels_are_revits_storeys` (2.5 s) - After merge, `main`'s run should save the cache and later runs restore it. Checked and noted here then. ## Out of scope - Measure integration: the BIM4LCA reference exports are 80 MB each, and #763 needs it. - #766's R2025 item, which waits on the licence. - The Actions cache was cleared of 1,162 unusable entries (3.6 GB) before this, so the 286 MB fits. ## Breaking changes None.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #756. Depends on #753 (RE-173): this branch is built on it and shares its geometry-node reader, so its first commit is #753's. Review only the last commit; I will rebase once #753 is merged.
The rule (fail closed). For a
ColumnorStructuralColumn(Revit 2024), the IFC body takes the second box of the column's geometry node only when every node of the column, in every partition, has x and y extents equal to the column's (both boxes, 1e-6 ft), all of them give the same second-box z-range (0.01 ft), and that range lies inside the column's own extent and differs from it. Otherwise the body is unchanged. The node scan is shared with RE-173'scolumn_bottoms, whose behaviour is unchanged.What changes and what does not. Only the body: the extrusion depth becomes the cut height, and a body that starts above the column's base is a placed extrusion that far up. The placement stays at the column's own base, so storeys and containment do not move.
m_locationZ,m_bboxHeight,BoundingBoxHeightand every parameter keep the column's own extent, as Revit'sLengthand offsets do. The element carriesBodyHeightSource = partition_geometry_node_after_joins. No boolean.Measured with
rvt-ifcagainst Revit's exported body z-range (verticalIfcExtrudedAreaSolid, 0.01 ft at both ends), before = #753's head (4a70c53):272 of the 276 cut columns are fixed and none regress (2,269 compared: 1,993 right before, 2,265 after). RE-173's columns stay right. Across all 19 files, storeys, placements, containment, GlobalIds and all other properties are identical between the two exports apart from
BodyHeightSourceon the 272.Not covered. The 4 left are in Office_Timber_BuildingPermit, among the 14 columns whose node copies give different second-box z-ranges; the rule leaves them as they were. The rule also declines 48 uncut columns whose copies differ in plan, all right before and after. Plan-shaped cuts (the node holds a box), Revit 2023 and 2025, and DACH and Snowdon (no elements exported on main, #736) are not covered.
Test.
tests/column_cut_body.rs, registered intools/ci/test-targets.txt. WithRVT_NORDIC_LCA_DIRholding BIM4LCAARK_NordicLCA_Office_Concrete_As-Built.rvt(CC BY-SA 4.0, fetched by URL and sha256 as incorpus/tier2/README.md, not redistributed) its 14 cut columns' bodies must equal Revit's whileBoundingBoxHeightkeeps the own extent; on4a70c53it fails (1343741: body top 182.087, Revit 180.610). Optional, withRVT_REVIT2024_SAMPLES_DIR:rstbasicsampleprojectcolumn 1173925, cut at its bottom.cargo fmt --checkandcargo clippy --all-targets --all-features -- -D warningspass; the full suite passes exceptifc_synthetic_project::synthetic_project_emits_valid_ifc4, which fails on main too.Report:
reports/element-framing/RE-178-column-cut-body.md.Clean-room: public Autodesk Revit 2024 sample files and the BIM4LCA files, with Revit's own IFC4 export as the oracle and the file's own schema and exported symbol names only. No SDK source and no decompiled or disassembled code was used.