Repository navigation
feat(ifc): a Revit 2025 roof by extrusion is drawn as its sketch's section, its B-spline read (#883) (RE-211) - #930
Conversation
…ction, its B-spline read (#883) (RE-211)
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 693f91f338
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
…licate sketch-line copies are dropped, and the spline is sampled at its ends (#883) (RE-211) Codex review: a profile of joined straight lines moved each corner by one thickness along its averaged normal; the underside now offsets each segment and meets them at t (n1 + n2) / (1 + n1 . n2). A sketch line framed in more than one partition is its first copy, as the plan profiles take it. A point 1e-4 of the spline's span in from each end puts the first and last chords along the curve's ends, which the plumb cuts follow. roof_bodies_vs_ifc also measures each of Revit's vertices against rvt-rs's surface, which a swept body needs (it has no vertices between its ends). The RE-211 report.
…file's roofs row as measured (#883)
# Conflicts: # docs/status.md
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 7d23257c07
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 7fd4bd39d1
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
… span is never skipped (#883) (RE-211)
… its area, and its ends are carried along their tangent to the plumb cuts (#883) (RE-211)
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 25d0a52cd3
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
…becomes a changelog.d fragment (#938)
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 7d0ec3b442
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
…has one, its extrusion may lie to one side of the sketch plane, and the cap area is summed near the outline (#883) (RE-211)
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 38485c6eed
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
…e assembles (#938) (#940) ## Summary Changelog entries become fragments, one file per pull request at `changelog.d/<section>/<name>.md`, and a release assembles them into `CHANGELOG.md` (`tools/release/changelog.py assemble`). CI checks every fragment (`tools/release/changelog.py check`). Closes #938. ## Motivation Every pull request added its entry at the top of the same `[Unreleased]` section, so each landing left every other open pull request in conflict with main on `CHANGELOG.md`. The queue then skipped them as `DIRTY` until someone merged main into each one by hand. On 2026-10-24 that happened after every landing: - #926 landing put #927 and #930 back in conflict; - #936 landing did the same to #886, #887, #927, #930 and #935, all with green CI. The `merge=union` driver that resolves such conflicts is in a maintainer's own git configuration, not this repository, and GitHub's merge never applied it. Nor does union merging keep the blank line between two entries. A fragment is a file of its own, so two pull requests never touch the same lines, and GitHub's update-branch, which the queue uses, merges them cleanly. ## Changes - `tools/release/changelog.py` (stdlib only): - `check` fails on a fragment outside a known section (`added`, `changed`, `fixed`, `removed`, `security`, `research`), an empty one, or one whose first line does not start an item (`- **`); - `assemble` puts each fragment at the top of its section under `[Unreleased]`, making the heading in Keep a Changelog order where it is missing, one blank line apart, in name order, and deletes the fragments. - `changelog.d/README.md`: the format. `changelog.d/changed/changelog-fragments.md`: this PR's own entry. - `.github/workflows/ci.yml`: the `check` step, beside the conflict-marker guard. - `RELEASE.md` step 5 runs `assemble` first. - `CONTRIBUTING.md`, `docs/maintaining.md` and the PR template point at `changelog.d/`. - `CHANGELOG.md`'s preamble says unreleased changes are also in `changelog.d/`. This PR leaves the existing `[Unreleased]` entries where they are. The open pull requests' entries move into fragments in those pull requests, each with one last merge of main. ## Testing I ran the tool on a scratch copy of main's `CHANGELOG.md`: - `check` with three fragments: `changelog.d: 3 fragment(s), each in a section and starting an item`; - `assemble` put two `added` fragments at the top of `### Added`, in name order with a blank line between, and made `### Security` between `### Removed` and `### Research`; it deleted the three fragments and left `README.md`; - `check` on a fragment that does not start an item, and on one in an unknown directory: both reported, exit 1; - on this branch, `check` passes on its one fragment, and `tools/ci/api-doc-ids.py` and the YAML parse pass. ## Audit-honesty checklist - [x] README / docs reflect the current state after this PR - [x] Commit messages describe WHAT changed and WHY - [x] No emojis in code, docs, or commit messages - [x] No private paths, personal email addresses, or internal jargon in committed files ## Legal and contribution hygiene - [x] I agree this work is licensable under Apache-2.0 (see `CONTRIBUTING.md`) - [x] This PR contains no Autodesk proprietary source, decompiled internals, or NDA'd SDK content (see `CLEANROOM.md`) ## Breaking changes None for users. Contributors write their entry under `changelog.d/` from now on.
…ies within 0.0001 ft of the curve (#883) (RE-211)
## Summary Prepares v0.7.0 (RELEASE.md steps 4 to 8): the version files, the `[0.7.0]` changelog section assembled from `changelog.d/`, the README's release section, and corrections to the status docs where they still described the state before RE-212 or before the BIM4LCA office was measured. Merging this is not the release; the signed tag on its squash commit is. ## Motivation Griffin's go-ahead (2026-10-24, about 3:00 PM): tag v0.7.0 once #887, #930, #935, #940, #942 and #943 are on main with CI green. All six have landed, the last at b04c0cb (#930). #934 (`--revit-property-sets`, breaking) and #923 (the `ElementId` newtype, breaking) go in the next release. ## Changes - **Version files** (0.6.1 to 0.7.0): `Cargo.toml`, `rvt-py/Cargo.toml` (and its `=0.7.0` pin on `rvt`), `rvt-wasm/Cargo.toml`, the `rvt` pin in `tools/stream_evidence/Cargo.toml`, `viewer/package.json`, `CITATION.cff` (`date-released: 2026-10-24`), `.release-please-manifest.json`, and the workspace crates' entries in `Cargo.lock` and `fuzz/Cargo.lock`. - **`CHANGELOG.md`**: `python3 tools/release/changelog.py assemble` moved the nine fragments in, then `[Unreleased]` became `[0.7.0] — 2026-10-24`, with an introduction, credits to puzzbobb (#870, #886, #887, #935) and n3ur0m4n (#882), and "Upgrading from 0.6": the research readers behind `unstable-research`, the `#[non_exhaustive]` types, the error variants (and Python's `ValueError`), `SimpleDecoder`, the property set builders' `Vec`, the removed `ifc::pset_validate`, the element walk failing closed, and changed exports. Headings in the assembler's order (Added, Changed, Fixed, Removed, Research), one each. `[Unreleased]` is left empty. - **Entries corrected for the release as a whole**: #847's pipe-port entry said In ports' axes were wrong because their flow direction was not read, and that other family-instance ports had no placement; RE-212 and #943 changed both, and it now gives main's counts (Measure 40126110706, base side: 124 of 124 and 62 of 62 with Revit's axis; joined ports 108 and 53 as Revit's, 10 and 6 opposite). The unjoined-ports entry says Revit 2025 in its headline. RE-215's entry adds the office. - **`README.md`**: "Release 0.7.0 and main", what 0.7.0 adds in brief. The 0.6.1 section listed RE-215 under 0.6.0's additions; it shipped in neither. - **`docs/support-matrix.json`**: - `native-symbol-cut-sizes`: the BIM4LCA office's result, and `user_impact` limited to families whose symbol cuts an outline; - `element-record-mep-connections`: still said HVAC and piping directions, names and descriptions are not read and In ports' axes are reversed; it now states RE-212 (direction, `InPort_`/`OutPort_` names, `Flow` descriptions, axes), keeps SystemType and the electrical description as unread, and lists RE-212's probe, scorer, test and report as evidence. - **`docs/status.md`** and **`reports/element-framing/RE-215-symbol-cut-loops.md`**: the office, which §6 called NOT MEASURED, as measured on 2026-10-24 (Measure 40121636312 and 40122363218): 187 of its 269 doors cut an outline and have Revit's sizes; its 269 windows and other 82 doors are drawn by symbols with no cut loop (#810). ## Testing Unit tests are banned in this repository: do not add them. Show the change working end to end on real files instead. - [ ] `tools/check-local.sh` passes: this PR's CI. No code changes; the version string changes the IFC header. - [x] Verified end to end on real Revit files: no behaviour changes; the measurements cited are the runs named above. - [ ] If this touches the IFC exporter: the IFC header carries the version (#417), so both Core Interior `rvt-rs.json` observations and their verdicts are refreshed from this PR's CI run (its `octetproof-core-interior` artifact) in a follow-up commit here, differing only in `witness_version` and the verdict hashes. - N/A: performance. ## Audit-honesty checklist - [x] README / docs reflect the current state after this PR - [x] The changelog section is assembled from the fragments; `changelog.py check` passes with none left - [x] Resolved limitations updated (RE-212's in the support matrix, the office's NOT MEASURED) - N/A: no new limitation - [x] Commit messages describe what changed and why - [x] No emojis in code, docs, or commit messages - [x] No private paths, personal email addresses, or internal jargon in committed files - N/A: not a reverse-engineering finding ## Legal and contribution hygiene - [x] Apache-2.0 - [x] No Autodesk proprietary content - [x] No fixtures ## Breaking changes The release's, listed under "Upgrading from 0.6" in `CHANGELOG.md`. This PR itself changes no API. ## Screenshots or output samples N/A: the IFC changes only in its header's version.
… RE-189 and RE-211 closed (#1064) ## Summary The README now lists what `main` adds after 0.9.0, and it no longer lists as open three gaps that RE-189, RE-211 and the materials work closed. It also fixes a broken anchor and a fuzz case count that was wrong. ## Motivation Griffin asked for the README to be brought up to date. It already carried every measured figure from #1049 to #1063 in its tables, but: - the "Support and evidence" link pointed at `#release-070-and-main`, a heading that no longer exists; - it sent readers to `[Unreleased]` in `CHANGELOG.md`, which is empty since #938 moved unreleased entries to `changelog.d/`; - it listed roofs by extrusion as not decoded (#883, closed by #930, RE-211), the ElemTable's first ids as an open question (#760, closed by #797, RE-189) and family instances' materials as decoder work (#34, closed 2026-09-27; the table's own row covers RE-149 to RE-206); - it said 38 fuzz regression cases, but `tests/fuzz_regressions.rs` has 64, all of them run in CI (`hardening fuzz_regressions` in `tools/ci/test-targets.txt`). It already had 64 when the sentence was written (#713). ## Changes - `README.md`: - the anchor now points at "Release 0.9.0 and main"; - "Release 0.9.0 and main" lists what `main` adds, taken from the `changelog.d/` fragments: base quantities, the diagnostics, and RE-248 and RE-251 to RE-255. On the office as built that is 21,065 quantities, against 0.9.0's 20,157; - the roofs row says a Revit 2025 roof by extrusion is drawn as its section. Its RE-211 figures (1,187 of 1,187 vertices within 0.001 ft, volume 1.00015 of Revit's) are stated apart from RE-199's 18 roofs, since its volume is outside the 1e-4 those meet. The two gap lists now say "outside Revit 2025", as `docs/status.md` already does; - the ElemTable row is Done, with RE-189's finding; - #34 is gone from the decoder-work list; - 38 becomes 64; - main's walls' `Width` is called an extension to slanted and unplaced walls, since 0.9.0 already had `Width` (RE-244). - `docs/support-matrix.json`, row `element-record-roof-outlines`: the notes still called #883 open. They now record RE-211's reading and measurement, and the evidence lists its reader, writer, probe, scorer and report. The status stays `partial`. N/A: no code, no export change, no changelog fragment (docs-only). ## Testing - `python3 tools/ci/api-doc-ids.py`: every cited RE finding has a report (240 reports). - `python3 tools/ci/wasm-api.py docs rvt-wasm/src/lib.rs README.md docs/viewer-api.md`: 22 bindings, matching. - `python3 tools/release/changelog.py check`: 18 fragments, valid. - Every `](#...)` anchor in the README resolves to a heading, every relative link resolves to a file, and there are no home paths. ## Audit-honesty checklist - [x] README / docs reflect the current state after this PR - [x] Commit messages describe WHAT changed and WHY - [x] No emojis in code, docs, or commit messages - [x] No private paths, personal email addresses, or internal jargon in committed files ## Legal and contribution hygiene - [x] I agree this work is licensable under Apache-2.0 (see `CONTRIBUTING.md`)
Summary
A Revit 2025 roof by extrusion is drawn as its section instead of a level block. Its profile is the B-spline (or the lines) its sketch holds in a vertical plane, which is the roof's top. Its type's thickness, measured square to the top, gives the underside, and both ends are cut plumb. The section runs across the record box. RE-211 reads the sketch's B-spline record for the first time.
Motivation
#883:
11_RoofByExtrusionin puzzbobb's R2025 models was the one roof of 19 still drawn as a box after RE-199.Changes
src/partition_beam_axes.rs:BoundedSpline,bounded_spline_atandscan_sketch_splines(2025). The record: after the bounded-curve tag, the start and end parameters, the degree, two flag bytes, the control point count, each point's weight and x, y, z, then the knots. Every value is validated, the control points are capped at 4096, and evaluation returnsNoneinstead of indexing past the knots.src/partition_schema_mvp.rs:attach_extrusion_roofshandles a roof whose sketch lines are all flat along one horizontal axis at one place. It joins its lines and splines into a profile rising across the plane (each within its record box) and offsets it by the type's layers (roof_extrusion_bottom). It keeps the section only where it reproduces the record box to 0.001 ft.src/ifc/export_content.rs:roof_extrusion_solidwrites the section across the box as a closed faceted brep, with every triangle facing out.BodySourceispartition_roof_extrusion.examples/probe_re211_extrusion_roofs.rsandtools/re/extrusion_roofs_vs_ifc.py.tools/re/roof_bodies_vs_ifc.pyalso measures each of Revit's vertices against rvt-rs's surface. A swept body has no vertices between its ends, so its nearest-vertex test cannot pass on one.reports/element-framing/RE-211-roof-by-extrusion.md, the supported profile's Roofs row (it still said gables and hips were boxes),docs/status.mdandCHANGELOG.md.Codex review: the underside meets at mitred joints, duplicate sketch-line copies are dropped, and the spline is sampled at its ends so the plumb cuts follow its tangents.
Testing
The research run, Measure 40003971692, measured the model against Revit's body:
Measure 40126110706, this branch's head (4921d94) against
mainwith-f r2025=true:11_RoofByExtrusion's IFC changes, and every other scorer output is identical on every model.The B-spline is drawn with 256 chords shared among its knot spans, then each chord is halved until the curve at its quarter, half and three-quarter points is within 0.0001 ft of it (at most 4,096 points; a curve that needs more is left out). On Codex's counterexample, a quadratic with a 0.001-long knot span carrying a 10 ft arch, a Python model of the same sampler gives a worst chord error of 0.0622 ft without the halving and 0.000076 ft with it.
tools/check-local.sh: left to CILegal and contribution hygiene
Contributor declaration (CLEANROOM.md): the findings are based on byte observations of the R2025 models (sources 1 to 3). I have not used Autodesk SDK source, ODA SDK source, leaked internal documentation, NDA material, or decompiled internal Revit implementation code beyond public symbol exports, and I have not copied or translated code from revit-ifc.
Breaking changes
None.
Related issues
Closes #883