Repository navigation
research(families): measure rectangular revolutions against Revit 2020 IFC (#156) (RE-391) - #1628
Conversation
|
Thanks, @BIM4GIB. I approved the CI runs for this draft after checking that it touches no workflow, build or dependency file, so the fast checks are running. I will read it once you mark it ready. |
|
Thanks, @BIM4GIB, this is the kind of decoder PR the repository wants. What I reproduced from your MIT archive (its SHA-256 matches the PR) with the released v0.17.0
The archive holds no personal path or name, and the three new One request before I approve: the report needs its number. Please rename it to |
On it! |
…0 IFC (DrunkOnJava#156) (RE-391) BIM4GIB's two commits of this pull request were unsigned; the same files as one signed commit, BIM4GIB as author.
15d6952 to
30eec2a
Compare
|
Thank you for the rename: RE-391 is yours now, and the report, the changelog entry, the addendum and the runner README all name it. One change from my side. The two commits of this branch were unsigned, and There is nothing for you to do. If you push to the branch again, fetch it first: your local history now differs from it. |
…c solids (#1632) ## Summary Decode a standalone Revit 2020 family's positive revolution from its saved profile, axis and angles, and export an analytic `IfcRevolvedAreaSolid` through the normal IFC command. Four fixtures are supported: REV-A, REV-B, REV-BT (line profiles, including partial and tilted sweeps) and ARC-A (full torus), confirmed by Revit's own IFC. ARC-B and ARC-BT remain research/refusal fixtures. ## Motivation Turn the RE-391 findings into bounded decoding and export coverage. The driven line/arc reader is shared with extrusions; existing project-instance and family-extrusion behavior is preserved. ## Changes - Shared sketch-curve selection and typed revolution decoding, with unsupported or ambiguous records and disconnected profile joins refused. - Analytic IFC profiles and placement, native ElementId tags and body diagnostics. - Discover RevolutionElem ids before decoding sketch graphs, avoiding unused sketch decoding and false revolution-budget notes in families without revolutions. - Pin the unchanged public fixture package and member hashes in [`research/family-revolutions-measure.tsv`](https://github.com/BIM4GIB/rvt-rs/blob/9505df6fea25a7542c01e161cdfc1aaded13577f/research/family-revolutions-measure.tsv) for the maintainer's separate Measure integration. - Native-file CLI checks, independent geometry replay, three evidence reports (RE-392–394), capability documentation and one changelog entry. ## Testing and reproduction Fixture download: [six synthetic Revit 2020 families](https://github.com/BIM4GIB/rvt-rs/releases/download/fixtures-revolutions-2020-v2/family-revolutions-revit2020-v2.zip). `family-revolutions-revit2020-v2.zip` contains six MIT-licensed synthetic RFAs, native references, a hash manifest and `REPRODUCE.md` with pinned dependencies and build commands. SHA-256: `6d68bedd29224158c2783fd66ae3072d7f4d931a68540db68856ee12587912c7`. Checked source: [9505df6fea25](BIM4GIB@9505df6). From this PR's source, after that setup: ```text python tools/oracle/runner/revolutions/verify_package.py --bin-dir target/ci --fixtures EXTRACTED_PACKAGE --output NEW_RESULTS_DIRECTORY ``` - All four replay stages pass: byte evidence, native references, compiled reader/refusal controls and actual analytic IFC export. No Revit is needed. - Four supported exports pass schema/EXPRESS, placement, closed topology and fixed 0.3048 mm sampled-distance / 0.01% volume limits and are byte-identical to the previous head. ARC-B and ARC-BT export no body and record an explicit partial-arc refusal. - Required local gates pass, including 302 integration checks with both fixture folders configured, 27 doc tests and 15 MCP checks. - Supplementary regression: 23 existing files / 46 default and `--family-extrusions` exports are byte-identical. Those sample models are not dependencies of the six-fixture replay. - Hosted CI and the required full Measure/witness comparison remain pending; no witness verdicts have been refreshed. Performance benchmark: N/A. ## Scope and known limitations One visible positive revolution, one closed convex profile clear of the axis, in a standalone 2020 family. Project instances, combined forms, voids, mixed line/arc profiles and other releases have no new measured coverage. Mapped-type quality modes still refuse the unclassified body. Profiles containing arcs are exported only for a full turn. The captured native IFC for ARC-B disagrees and ARC-BT times out, so neither is exported. Their native face/projection captures remain research leads, not export confirmation. Surface checks are sampled, not whole-surface proofs. ## Audit-honesty checklist - [x] README, status/support matrix, dated evidence and changelog reflect the final behavior and its limits. - [x] Fixture cleanup was checked by native save/reopen with unchanged geometry; file hashes and byte offsets describe the cleaned archive. - [x] No private paths, personal emails, installed sample models or private journal/launch orchestration are included. ## Legal and contribution hygiene - [x] Code is licensable under Apache-2.0; authored fixture data is MIT. - [x] Sources are synthetic file bytes, existing clean-room readers, public API authoring/oracles and IFC specifications. No proprietary implementation, decompiled internals, ODA source or NDA material was used. ## Breaking changes None to stable APIs or CLI. The research API remains behind `unstable-research`. ## Output sample From the 9,051-byte ARC-A export; two profile arcs and a full analytic turn: ```step #165=IFCINDEXEDPOLYCURVE(#164,(IFCARCINDEX((1,2,3)),IFCARCINDEX((3,4,1))),.F.); #163=IFCARBITRARYCLOSEDPROFILEDEF(.AREA.,$,#165); #166=IFCREVOLVEDAREASOLID(#163,#157,#160,6.283185307179586); ``` ## Related issues Refs #156 and Discussion #393; follows RE-391 / PR #1628. Credit STE1200's team for the sketch-to-solid approach described in Discussion #112.
## Summary Release 0.18.0. Everything merged since 0.17.0 (61 pull requests, `main` at 979ec42): every element that would be a bounding box drawn from the mesh Revit saved for it by default on Revit 2023 to 2027, roofs, railings, instances and curved surfaces read for it, railings aggregated under their stairs, the quantities and properties of the bodies drawn from meshes (walls, mullions, panels, roofs, floors, openings, round columns), four more "Export to IFC As" values, unique type GlobalIds, standalone family revolutions, a reason on every box that stays one (#1645), and a cut in the saved-mesh pass's peak memory on large files (#1690), with a part that remains (#1694). puzzbobb's #1620 and #1633 and BIM4GIB's #1628 and #1632 are credited in the introduction. The release's own Measure found a cost #1191 had not disclosed: the default export of a Revit 2023 to 2027 file took 1.4 to 4.4 times the peak memory of 0.17.0 (Core Interior 305 to 647 MiB, Snowdon Towers Architectural 1,072 to 3,964 MiB). #1691 cut the large files' share without changing a body (Core Interior 437 MiB, Snowdon Towers Architectural 2,086), and what is left is 1.1 to 1.9 times the time and 1.4 to 4.4 times the peak memory on Autodesk's samples of Revit 2023 to 2027, the most on the small `rac_basic` samples (200 to 875 MiB), which #1691 did not move. The notes, README, docs and help text state the measured figures, and #1694 tracks the rest. The project owner was shown these figures before the release was armed and chose to tag with them stated (2026-11-11). ## Changes - Version 0.17.0 -> 0.18.0 in: - Cargo.toml; - rvt-py/Cargo.toml and its `=` pin; - rvt-mcp/Cargo.toml and its `=` pin; - rvt-wasm/Cargo.toml; - tools/stream_evidence/Cargo.toml's pin; - viewer/package.json; - CITATION.cff (version and date); - Cargo.lock and fuzz/Cargo.lock. - `python3 tools/release/changelog.py assemble`: 42 fragments go into `[0.18.0]`, with an introduction, what is not measured, the measured bullets and "Upgrading from 0.17"; #1690's entry arrived after the assembly and is written into `[0.18.0]` Fixed by hand. - README: the latest release, the "Upgrading from 0.17" and "after 0.18.0" fragments sentence, and two sentences that still described roofs on Revit 2023 to 2027 and the saved-mesh default as limited to family instances (`docs/evidence.md` row likewise). - The Core Interior witness observations and verdicts, and the synthetic fixtures, from this pull request's CI run 42949885323: only `witness_version`, the verdict hashes and the fixtures' version strings differ. - The measured cost of the saved-mesh default replaces #1191's first figures (24.4 s and 1,423 MiB against 21.2 s and 913, "1% to 17% more time and up to 59% more peak memory"): the changelog, README, `docs/python.md`, `docs/release-1.0-criteria.md`, `docs/support-matrix.json`, the `--no-saved-meshes` help text of `rvt-ifc` and `rvt-gltf` and the module doc of `src/ifc/saved_meshes.rs` quote Measure run 42956917709; the viewer's wasm memory in the changelog and `docs/viewer-api.md` is Deploy viewer run 42957158734 on `main` at 979ec42 (Core Interior 308 to 383 MiB, not 324). The source changes are help text and doc comments only. ## Testing - `python3 tools/ci/release_preflight.py check --event workflow_dispatch --ref-type branch --ref-name chore/release-0.18.0 --sha HEAD`: ok, version 0.18.0. - `python3 tools/release/changelog.py check`: ok. `rustfmt --edition 2024 --check` on the three Rust files: ok. - The release's baseline Measure, `main` at 8334726 against v0.17.0 with every flag, the held-out models and timing: run [42949360321](https://github.com/DrunkOnJava/rvt-rs/actions/runs/42949360321), read into the changelog's "Measured against 0.17.0" bullets; #1691 moves no export, run [42954375538](https://github.com/DrunkOnJava/rvt-rs/actions/runs/42954375538). - The timing of the final code: run [42956917709](https://github.com/DrunkOnJava/rvt-rs/actions/runs/42956917709), v0.17.0 against #1691's head (the same source as `main` from 979ec42: `git diff --stat` over src, Cargo.toml and Cargo.lock is empty), one runner per file, the median of three exports, 58 files. - The dry run RELEASE.md step 7 asks for: `publish.yml` dispatched on this branch at b001cb3, [run 42949890449](https://github.com/DrunkOnJava/rvt-rs/actions/runs/42949890449), every job green (the wheels installed and opening a model, `cargo install` with the CLI sample, the docs.rs preview, the viewer load smoke), and again at bd6875d after #1691 and the notes: [run 42959626601](https://github.com/DrunkOnJava/rvt-rs/actions/runs/42959626601); the head since moved two commits that change CHANGELOG.md only: 4762e14 (the table's own minimum peak ratio, 1.42, an introduction sentence on the cost, a bullet's lead) and 13373e7 (every cost reads from 0.17.0's figure to 0.18.0's). Nothing was published. - The same-project gates, which `arm.sh` needs on a commit holding the PR's edits under `src/` (help text and doc comments only): Measure run [42961127420](https://github.com/DrunkOnJava/rvt-rs/actions/runs/42961127420) on 4762e14, `samples=true`, default scorers: pass, 15 samples held to their earlier saves and the Areas on 4 saves and on the 2021 save. Unit tests: N/A. ## Audit-honesty checklist - [x] Each entry keeps its caveats; the introduction lists what is not measured. - [x] The saved-mesh cost is the measured one, with what is still above 0.17.0's named (#1694). - [x] No emojis, private paths or PII. ## Legal and contribution hygiene - [x] Apache-2.0. No Autodesk source, internals or NDA material. ## Breaking changes The saved-mesh default and its library names (`SavedMeshChoice::Default`, `saved_meshes::default_scope`, new `SavedMeshChoice::DoorsAndWindows`), listed under "Upgrading from 0.17".
Summary
Three synthetic Revit 2020 families establish the saved revolution axis marker,
profile placement and start/end angle semantics. A bounded proof rebuilds all
three from their own records and matches Revit's native IFC4 Design Transfer
exports within 0.001521 mm at every tested point. No production revolution
reader or export behaviour change is added.
Motivation
Refs #156 and Discussion #393.
This extends RE-327's sketch infrastructure and RE-344's angle observations.
Credit STE1200's team for the sketch-to-solid pipeline described in Discussion #112.
Changes and evidence
bytes, decoded values and object relationships; saved copies remain distinct.
turn. Small public-API authoring/export scripts are included.
replay command. The only shared-library change exposes record locations to
research callbacks.
reconnaissance addendum and research changelog.
The MIT fixture archive contains the three RFAs, three native IFCs,
licence/hash sidecars and evidence. SHA-256:
57bbc9c7be6f53ea98e4c73daaa6a9ea703a0f320eac36f69ac7af898c8e0072.After building the probe and rvt-dump, extract the archive and replay without
Revit (append
.exeto executable paths on Windows):The runner README
gives the build commands and tested Python dependencies.
Testing
5247e7ba: workspaceclippy with warnings denied, strict check, rustdoc, all-target/all-feature
build, 27 doc tests, 301 integration checks, MCP network audit,
15 MCP checks and three examples. Windows cargo-fmt hits error 206;
the same target roots pass rustfmt in batches. Integration checks used
ci.spans verified against rvt-dump. Surface bar 0.3048 mm; IFC and rebuilt volume
errors each below 0.01%. Nine unsupported-evidence mutations and a wrong IFC
pairing are rejected.
separate build directories. All input hashes unchanged.
corpus jobs were run locally.
The initial full-ring mismatch came from generic IFC4's coarse faceted BRep.
Six controlled exports identify explicit IFC4DTV as the appropriate reference;
the reconstruction algorithm and tolerances were unchanged by that correction.
Audit honesty
One release, three rectangular positive forms. No general revolutions, holes,
curved profiles, Boolean operations, flipped sketches, reversed-axis support
or project-instance reconstruction is claimed. Surface agreement is sampled,
not a continuous Hausdorff proof. The GElement inventory is not a decoded-mesh
verdict. The report records these limits; no unit-test substitute for native
evidence is claimed. No private paths or emojis are added.
Legal and contribution hygiene
RE-327, RE-344 and Revit's native IFC exports. Documented public APIs author
files and capture separately labelled oracle data. No Autodesk SDK source,
ODA source, leaked documentation, NDA material or decompiled internal Revit
implementation code was used; no revit-ifc code was copied or translated.
every nonmetadata RFA stream and IFC geometry array remains unchanged.
No installed Autodesk sample or template file is redistributed.
Breaking changes
None to supported APIs or CLI. Research Entry gains source-location fields;
research APIs are outside the repository's semver promise.