Repository navigation
fix(ifc): a wall's edited elevation profile is cut in its body, and its openings are the pockets of the profile against its convex hull, as Revit's export writes them (#1607) (RE-380) - #1608
Merged
Conversation
DrunkOnJava
force-pushed
the
fix/1607-profile-pockets
branch
from
November 9, 2026 13:54
6098381 to
878225b
Compare
DrunkOnJava
marked this pull request as ready for review
November 9, 2026 14:12
3 tasks done
DrunkOnJava
added a commit
that referenced
this pull request
Nov 9, 2026
## Summary Release 0.17.0. Everything merged since 0.16.1 (29 pull requests, `main` at 52282ea): Revit 2015 to 2023 curtain walls, curtain parts and steel beam I sections, duct and port reads of Revit 2015 to 2027, walls' `Height` on 2015 to 2023, room outlines from a stored solid's edges, two wall rules on Revit 2024 (a stub cut whole; a profile-edited wall's top and `Height`), no `ObjectType` on Revit 2026 and 2027 saves, and two export claims made conditional (#1598). The saved-mesh default for every class (#1610) and the wall profile pockets (#1608) are not in it; they go in the next release. ## Changes - Version 0.16.1 -> 0.17.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`: 17 fragments go into `[0.17.0]`, with an introduction, what is not measured, and "Upgrading from 0.16". - README: the latest release and the "Upgrading from 0.16" and "after 0.17.0" fragments sentence. - The Core Interior witness observations and verdicts, and the synthetic fixtures, from this pull request's CI run (to be pushed). ## Testing - `python3 tools/ci/release_preflight.py check --event workflow_dispatch --ref-type branch --ref-name release/v0.17.0 --sha HEAD`: ok, version 0.17.0. - `python3 tools/release/changelog.py check`: ok. - The release's baseline Measure, `main` at 52282ea against v0.16.1 with every flag and the held-out models: run [42632958286](https://github.com/DrunkOnJava/rvt-rs/actions/runs/42632958286) (its result goes into the changelog before this is merged). - The dry run RELEASE.md step 7 asks for, `publish.yml` dispatched on this branch (to be run, and linked here). Unit tests: N/A. ## Audit-honesty checklist - [x] Each entry keeps its caveats; the introduction lists what is not measured. - [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 API changes of #1524 and #1598 and the `ObjectType` change of #1601, listed under "Upgrading from 0.16".
…ts openings are the pockets of the profile against its convex hull, as Revit's export writes them (#1607) (RE-380)
…corner where its hull edge cuts the corner off, as Revit closes Core Interior's wall 55840 (#1607) (RE-380) The first commit closed every pocket by its hull edge. Corpus health failed on the test of #227: Revit's opening 55859 on wall 55840 is nine points, the stretch's eight corners and the corner of the profile's bounding rectangle the hull edge cuts off, 301.65 ft2, where the stretch and the edge hold 71.23. The scorer's boxes and corner sets cannot tell the two (the same distinct coordinates), so the Measure would have passed it. A pocket is closed by the hull edge, or through the rectangle's corner when the edge's ends stand on two adjacent sides of the rectangle and neither is at a corner (55840); the terrain wall 1387731, whose edge ends inside the rectangle and at its corner, stays four corners. An edge ending at a corner with the other end on a side it does not share is not read (none of the 18 walls has one) and the wall's body is cut all the same. A corner of the loop within the tolerance of a hull edge now counts as on the hull, so a notch cut in a side is a stretch between its shoulders. unfilled_openings_vs_ifc compares the volume of each opening's mesh (0.01 %), which does tell the two closures apart. ProfileCutSource has its row in SOURCE_VALUES, sourced from the wall's sketch lines as ProfileStubSource is.
…oint list the profile's sketch as their sources (#1607) (RE-380) The second CI of the pull request left one Corpus health failure: Core Interior's wall 55840 carries ProfileCutSource and no ProfileStubSource, so no noted sketch source was listed for it (the provenance table lists the noted sources of the readers a written *Source value names, and the office's walls had the stub's) and the offsets test's Sourced row found none. ProfileCutSource, and ProfileTopSource of #1604, which no tested model writes, are drawn from the profile's sketch as RE-358's stub is; both have the row. The unit test of 55840's polygon took the area's sign from a wall that runs toward -y, where counter-clockwise along the wall is clockwise in (y, z).
…s body as a boolean difference (#1607) (RE-380) The full CI of the pull request (run 42632378889) reported REPLAY_DRIFT on both Core Interior artifacts for the rvt-rs witness alone: ifc-lite and ifcopenshell, which read Revit's own export, matched. The fresh observations differ from the committed ones by exactly one wall's body: IFCBOOLEANRESULT 0 to 1, and one more IFCEXTRUDEDAREASOLID, IFCARBITRARYCLOSEDPROFILEDEF, IFCPOLYLINE, IFCAXIS2PLACEMENT2D, IFCAXIS2PLACEMENT3D, IFCPROPERTYSINGLEVALUE (ProfileCutSource), 3 IFCDIRECTION and 12 IFCCARTESIANPOINT, the prism that cuts wall 55840's region and the property that says so. IFCOPENINGELEMENT does not move: the pocket is the opening the region was. Both verdicts replay PASS with the fresh observations and are unchanged.
… a pocket's Tag is the first line of its stretch (#1607) (RE-380) Snowdon Towers Sample Architectural, with Revit's own IFC4 export of it (local only), holds 13 pockets on 7 walls, and Revit's export writes those 13 openings and no other on them: the closure rule of the pocket's hull edge fits all 15 pockets Revit exports (8 closed through the rectangle's corner, 7 by the edge), but two things of the first design did not. A region RE-151 reads that a pocket equals (Core Interior's 55840 and 4 of Snowdon's walls) was both cut in the wall's body and written as the pocket's opening, and IfcOpenShell then evaluates the body of Snowdon's wall 698311 as the uncut box. Such a region is now the pocket: the wall keeps its box and the pocket is written in its place, so Core Interior's export is as it was. Every other region is cut in the body as before, and the wall's pockets are its openings. The Tag of the opening was the highest id of the stretch, fitted to three walls. Revit names the stretch's first line in the counter-clockwise walk on 12 of the 15 pockets and its last on the 3 of one Snowdon wall; the highest id is right on 6 and the lowest on 8. The first line is written, and the 3 are a measured residual in the report. The Core Interior witness observations are back to main's, as the wall's body is no longer cut.
DrunkOnJava
force-pushed
the
fix/1607-profile-pockets
branch
from
November 9, 2026 15:10
cb8ca18 to
14ae099
Compare
…ore Interior and Snowdon Towers, says what was checked about the Tag's residual, and counts the notch on Autodesk's sample projects (#1607) The three Snowdon openings whose Tag is the last line (wall 698364) were checked against the opening's extrusion direction, its polygon's winding in the wall's frame and the profile axis against the wall's x: the same on all 13 openings, so nothing read separates that wall. Revit's polygon starts at the end of the stretch beside the line it names. The CI-built binaries of the head and of main, run on the local copies: Core Interior's IFC is main's apart from two timestamps; Snowdon's nine profile walls have main's mesh volumes, and its unfilled openings pair 78 against 71. The census of every Revit 2024 file's probe output finds 26 pockets and none with a hull edge that ends at a corner and on a side it does not share, and 3 notches (one wall each of rac_basic, rme_advanced and rme_basic, none with a Revit export), which the report had called absent.
14 tasks done
DrunkOnJava
added a commit
that referenced
this pull request
Nov 9, 2026
…eference in both sets, and its profile's area where the wall has base quantities (#1193) (RE-381) (#1613) ## Summary A wall's profile opening (RE-380) now carries what Revit's export writes on it: the wall's type name as its `Reference` in `Pset_OpeningElementCommon` and in `Pset_EnvironmentalImpactIndicators` (none where the wall has none), and, where the wall has base quantities, `Qto_OpeningElementBaseQuantities.Area`, the area of the opening's profile, and no other quantity. ## Motivation #1608 paired the BIM4LCA terrain walls' opening with Revit's, which made W7 count three of Revit's values on it as missing on each terrain file (the two Reference values and the Area), where the unpaired opening had hidden them. A probe run on the five Revit 2024 files with Revit's export (Measure [42648274662](https://github.com/DrunkOnJava/rvt-rs/actions/runs/42648274662), the new scorer `pocket_opening_values_vs_ifc.py`) shows what Revit writes: on the terrain opening both References are `MS-2`, the wall's type name, and the only quantity is `Area` 7.216426890207297 m2, the polygon's area to its full precision; Revit's export of Core Interior writes no property set on any wall or opening and no base quantities (its setup), so it cannot show the rule there; on Snowdon Towers' 13 pocket openings (local only) both sets equal the host's in 26 of 26. The report is RE-381. #1193 lists the opening Reference among W7's remaining values. ## Changes - `src/ifc/step_writer.rs`: in the loop of a wall's profile openings, the host's Reference (`host_references`, as RE-237 does for a floor's void) in both sets where the host has one, and the Area where the wall has a `Qto_WallBaseQuantities.Width` (the test RE-244 uses for a door's `Depth`), so `--no-base-quantities` leaves it out. - `src/ifc/mod.rs`: `pset_property_value_count` holds the two Reference values of each written profile opening, so `decoded.parameter_value_count` is still the file's `Pset_` values. - `src/research/partition_schema_mvp/walls.rs`: the blank doc line between the two paragraphs of `elevation_profile_pockets` that rvtReview's read of #1608 noted. - `tools/re/pocket_opening_values_vs_ifc.py`: the scorer that prints what Revit's export writes on a profile wall's pocket openings (it scores nothing). - `changelog.d/added/381-profile-opening-reference-and-area.md`, the report RE-381. ## Testing Unit tests are banned in this repository; nothing here is a pure helper. The change is shown end to end on real files: - [x] `full / CI passed` on the final head (`c30aa78c`) - [x] Verified end to end on real Revit files: an unfiltered Measure with every flag and `holdout=true` against `main` (`04f21f71`), run [42649417280](https://github.com/DrunkOnJava/rvt-rs/actions/runs/42649417280) on `29cdfdb5` (the two commits after it change witness observations and docs only). Five of the 118 exports move (Core Interior, the two terrain files, `rac_basic` and Snowdon Towers Architectural, all Revit 2024), and the other 113, the 18 held-out models among them, are byte for byte main's. On each terrain file the opening's three values now pair (`psets_vs_ifc` equal 82 to 84 and missing 31 to 29, `qtos_vs_ifc` equal 16 to 17 and missing 29 to 28, 28 to 27 on timber, different unchanged (0 for the properties, and 0 for the quantities except the timber file's one), values Revit does not write unchanged (2 properties, 0 quantities); the Area is Revit's to its full precision). No scorer of a wall's body, top, height, ends or layers, or of an opening's box or volume, moves on any model. `decoded.parameter_value_count` moves by exactly the Reference values written (2 on Core and each terrain file, 8 on `rac_basic`, 26 on Snowdon). `same-project gates` is success on `29cdfdb5`: 15 samples held to their earlier saves, and the Areas on 4 saves and on the 2021 save; it names `rac_basic`, whose 2024 save moves and whose 2025 to 2027 saves do not. Locally, on the run's CI-built binaries: Snowdon's two Reference properties go from 56 to 66 equal against Revit's export (counts only). The numbers are in RE-381 section 3. - [x] Core Interior's wall 55840 gets the Reference pair and the Area on its opening (rvt-rs writes the sets there as for every other element of Core, whose Revit export writes none), so both committed rvt-rs witness observations are refreshed from the CI artifact (`IFCPROPERTYSET` +2, `IFCELEMENTQUANTITY` +1, `IFCQUANTITYAREA` +1, `IFCRELDEFINESBYPROPERTIES` +3) and both verdicts replay PASS with the verdict files unchanged. ## Audit-honesty checklist - [x] README / docs reflect the current state after this PR: the report and the changelog fragment; no capability row changes. - [x] A user-visible change has its entry as a fragment under `changelog.d/added/`. - [x] If a limitation was resolved, the docs are updated: with the Measure (RE-381 section 3). - [x] If a new limitation was introduced, it is documented in the PR body and in-code: the Area rests on one opening of one wall, in both terrain files; it is also written on Core Interior's and Snowdon Towers' pocket openings, where Revit's exports write no base quantities, so it is checked on neither (RE-381 section 4). - [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 - [x] Reverse-engineering finding: the report RE-381. ## 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`). Contributor declaration: every fact here comes from byte observations of the BIM4LCA office's files (CC BY-SA 4.0), Autodesk's Core Interior and Snowdon Towers samples, with Revit's own IFC4 exports of them. No Autodesk or ODA SDK source, disassembly, leaked document or NDA material was used, and nothing was copied or translated from revit-ifc. - [x] No new test fixtures ## Breaking changes None. ## Related issues Refs #1193 (W7), #1607 (RE-380).
This was referenced Nov 9, 2026
DrunkOnJava
added a commit
that referenced
this pull request
Nov 9, 2026
…ub at 24 ends and finds it the sketch's top line carried on, as RE-358 draws it (#1473) (#1618) ## Summary Revit's body keeps a profile-edited wall's top line on to the wall's end: measured directly at 24 stub ends of 12 walls, Revit's top is the sketch loop's top edge carried on, and rvt-rs's top (RE-358's rule) is Revit's. The report is RE-383, with the scorer that reads it; there is no source change. ## Motivation #1473 was kept open after RE-358 (#1501): the four office walls' volumes matched Revit's, but the issue's done-when also asked for the stub's top to be read from the bytes, or for a measured negative to say what was tested, and RE-358 had not read Revit's top over the stub, only volumes and plan rows. RE-380 (#1608) then showed that Revit clips such a wall by the planes of its profile's sloped hull edges, which is what carries a sloped line on to the wall's end. This reads Revit's own bodies at the ends of the stubs. ## Changes - `tools/re/wall_profile_tops_vs_ifc.py`: a scorer for the output of `probe_1607_wall_profile_lines` (commit `80808447`, the sketch lines of every wall) and an IFC. It takes the file out of its IfcSite placement (`ifc_common.site_frame`) and prints, for each wall whose loop lies in a plane along x or y, the highest point of the body at the ends of the wall's box and of its loop and between, the loop's top at the same places, and the loop's top edge at each end carried on to the stub's end. It scores nothing. - `reports/element-framing/RE-383-profile-wall-stub-tops.md` and `changelog.d/research/383-profile-wall-stub-tops.md`. ## Testing Unit tests are banned in this repository; nothing here is a pure helper. The measurement is end to end on real files, and no output of the exporter changes: - [ ] `full / CI passed` on the final head - [x] Measured on Revit's own exports: Measure [42658044225](https://github.com/DrunkOnJava/rvt-rs/actions/runs/42658044225) (the scorer as the probe scorer on commit `01ecb7c4`, on the two BIM4LCA office files), the same scorer on rvt-rs's export of them from Measure [42655806838](https://github.com/DrunkOnJava/rvt-rs/actions/runs/42655806838) (`main` at `060e8f0a`), and locally on Snowdon Towers' Revit export and rvt-rs's export of it. At all 20 stub ends of the office's 9 walls with one (10 per file) Revit's top is the carried line to 0.0001 ft and rvt-rs's is Revit's to 0.0000 ft; on 4 stub ends of Snowdon's 3 walls read, the same. The numbers are in RE-383 section 2. - No Measure of this change is needed: nothing under `src/` or the gates' files changes. ## Audit-honesty checklist - [x] README / docs reflect the current state after this PR: a report and a research fragment; no capability row changes. - [x] A user-visible change has its entry as a fragment under `changelog.d/research/`. - [x] If a limitation was resolved, the docs are updated: #1473's done-when, RE-383 section 5. - [x] If a new limitation was introduced, it is documented in the PR body and in-code: none; what no file with a Revit export can test (a stretch longer than the wall is thick, an arc, an angled wall, the end `rac_basic`'s wall 493612 refuses) is RE-383 section 4. - [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 - [x] Reverse-engineering finding: the report RE-383. ## 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`). Contributor declaration: every fact here comes from byte observations of the BIM4LCA office's files (CC BY-SA 4.0) and Autodesk's Snowdon Towers sample (counts and equalities only), with Revit's own IFC4 exports of them. No Autodesk or ODA SDK source, disassembly, leaked document or NDA material was used, and nothing was copied or translated from revit-ifc. - [x] No new test fixtures ## Breaking changes None. ## Related issues Closes #1473 (RE-383 section 5 says why its done-when is met). Refs RE-358 (#1501), RE-380 (#1608), #1474.
DrunkOnJava
added a commit
that referenced
this pull request
Nov 9, 2026
… file is drawn from the mesh Revit saved for it by default (#1191) (#1610) ## Summary Every element of a Revit 2023 to 2027 file that would be a bounding box is drawn from the mesh Revit saved for it by default, where all of the mesh decodes: in `rvt-ifc`, `rvt-gltf`, Python, the MCP server and the viewer. Doors and windows alone were until now, and every other family (furniture, fixtures, equipment, MEP devices and the rest) took `--saved-meshes`. `--no-saved-meshes` keeps the boxes. A mesh with a face that does not decode keeps its box, as before. ## Motivation #1191 (W6: no body is a bounding box). The maintainer chose this scope on 2026-11-09, through the question tool, over keeping doors and windows alone and over only the classes measured exact ("All classes, whole meshes only"), with the cost below in front of him. The viewer follows only because its memory and load time are measured in Playwright (his 2026-10-30 condition, restated). **What it costs**, on one runner, median of 3 alternating runs (`tools/ci/measure-timing.sh`, Measure run [42614230465](https://github.com/DrunkOnJava/rvt-rs/actions/runs/42614230465): `main` against the same tree with the default scope All): | file | time | peak memory | |---|---|---| | Core Interior | 4.23 s to 4.28 s | 305 to 305 MiB | | BIM4LCA office as built | 21.2 s to 24.4 s (+15%) | 913 to 1,423 MiB (+56%) | | BIM4LCA office at permit | 18.3 s to 21.5 s (+17%) | 973 to 1,536 MiB (+58%) | | RE1 Electrical | 1.75 s to 1.94 s | 166 to 264 MiB (+59%) | | RE1 Architecture | 1.25 s to 1.40 s | 121 to 160 MiB | The office's IFC grows from 68 to 83 MB: 11,078 of its 11,246 boxed bodies are drawn from their meshes (568,885 triangles against 257,108), and 124 keep their box, their saved graphics not decoding whole (run 42612357300). **Not every mesh is Revit's.** Of the bodies scored on 31 models (run 42612357300, `mesh_bodies_vs_ifc`, "ref on ours": every vertex of Revit's export within 0.001 ft of the mesh), 17 classes are exact. Doors are 675 of 681, sanitary terminals 68 of 94, flow fittings 71 of 89, flow terminals 30 of 35 and walls 14 of 18. **The viewer** (Playwright, Chromium on a 4-CPU runner, one open each, viewer tests run [42631322761](https://github.com/DrunkOnJava/rvt-rs/actions/runs/42631322761) at this branch's head): the wasm memory with the meshes on is the boxes' on Einhoven (17 MiB), RE1 Mechanical (68) and Plumbing (54), 16.3 MiB more on Core Interior (308.1 to 324.4, the same as with doors and windows alone on `main`'s run 42629390948), 21.1 MiB more on RE1 Architecture (96.4 to 117.5) and 51.6 MiB more on RE1 Electrical (160.9 to 212.5). The wasm open call takes at most 0.52 s longer (RE1 Electrical), the viewer's load time at most 0.51 s, and the test's wall clock at most 0.89 s (RE1 Architecture); Core Interior is 2.6 s faster with the meshes on, which is the noise of one open each. Far from the 4 GiB a tab holds. **A very large file.** None over 1.4 GiB has been measured. The reporter of #1075 sees 10.3 GB for a 438 MB client model at 0.12.0; how much this adds depends on how many boxed elements the file holds, which the counts it posted do not say (they list 1,781 proxies, 431 sanitary terminals and 32 pieces of furniture among 9,958 elements, against the office's 11,246 boxed bodies), so it may be much less than the office's 56%, or more. Their `probe_1075_memory_stages` takes the default scope, so it measures the new default as it stands; I have asked them to run it on this commit. `--no-saved-meshes` returns the previous memory, and `saved_meshes: "doors_and_windows"` (MCP, new `SavedMeshChoice::DoorsAndWindows`) the previous default. ## Changes - `src/ifc/saved_meshes.rs`: `default_scope` is `SavedMeshScope::All` on Revit 2023 to 2027; the module's documentation states the decision and the measurements. - `src/ifc/export_pipeline.rs`: `SavedMeshChoice::Default` documents the new scope, and a new `SavedMeshChoice::DoorsAndWindows` (at the end of the enum) selects the previous one: Revit 2023 to 2027 only, and `--family-extrusions` still implies every boxed element. - `rvt-mcp`: `saved_meshes` takes `default` (the new default), `doors_and_windows` (the previous default, now an explicit choice), `all` (every release) and `off`; `docs/mcp-tools.json`, `docs/mcp-tools.md` and `docs/mcp.md` follow. - `rvt-ifc` and `rvt-gltf`: the help of `--saved-meshes` (now only a change on Revit 2015 to 2022) and `--no-saved-meshes` (with the cost). The flags are unchanged. - Python (`rvt-py`, `python/rvt/__init__.pyi`, `docs/python.md`) and the wasm bindings: the default follows the library's; the wasm `warnings` text no longer says "door and window". - The viewer: the option reads "Draw family instances from saved meshes", with its hint, the loading card's stage and the worker's note; `viewer/tests/saved-meshes-measure.spec.ts` no longer asserts that only doors and windows are drawn, and its table counts the boxed bodies drawn from meshes. - Docs that state the default: `README.md`, `docs/status.md`, `docs/evidence.md`, `docs/compatibility.md`, `docs/supported-profile.md`, `docs/release-1.0-criteria.md` (W6), `docs/support-matrix.json`, `docs/reference-models.md`, `docs/rooms.md`, `docs/viewer-api.md` and `viewer/README.md`, with comments in three workflows and `tools/re/mesh_bodies_vs_ifc.py`. - `tools/re/bodies_across_saves.py`: an IfcBeam drawn from its saved mesh is held with the beams and landings, and the floor for `saved_graphics_mesh` there is 8 on rac_advanced: the 8 beams RE-328 drew as boxes along their lines are saved meshes now, so the floor for `partition_beam_box_along_axis` could not hold. - `tools/re/readers_across_saves.py` and `tools/ci/check_same_project_projects.py`: `ROOFS_LEFT_AS_BOXES` is `ROOFS_NOT_THE_2025_BODY`, naming exactly the five roofs a 2026 or 2027 save draws otherwise than the 2025 save does, each as pinned: rac_advanced's 201262 (its record box, as before) and 165755, 167036 and 167158 (their saved meshes, where the 2025 save draws a level block of their sketch outline), and rac_basic's 243274 (its saved mesh against the 2025 save's roof extrusion). A mesh counts only where its box contains the 2025 body's, and the CI step holds the list to those five tags, so it can only shrink. The maintainer chose this through the question tool on 2026-11-09 ("Allow these 4 as meshes"); #1612 is the follow-up that takes the three gables off the list. `docs/maintaining.md` and `docs/status.md` say so. - `changelog.d/changed/1191-saved-meshes-default.md`, which also says that no roof, beam, slab, footing or stair flight mesh is among the bodies scored against Revit's export. ## Testing Unit tests are banned in this repository and none were added. - [x] Local, no build: `rustfmt --check` on the seven Rust files, `tools/release/changelog.py check`, `tools/ci/measured_numbers.py` (270 of 288 numbers name a model), `tools/ci/api-doc-ids.py`, `tools/ci/render-mcp-tools.py --check` and `tools/ci/check_same_project_projects.py`. - [x] End to end: the unfiltered Measure of this change against `main` ([42647512042](https://github.com/DrunkOnJava/rvt-rs/actions/runs/42647512042): 118 models, the held-out included; `48150fa1` against `495b212c`; the Rust sources have not changed since, and the branch is rebased onto `6533e8f2` as `2692ac44`): - **50 of the 118 exports move**, all of Revit 2023 to 2027: Einhoven, the office as built and at permit and its two terrain files, RE1's four, three Revit 2025 models (the stair rooms), the 2023 to 2027 saves of Autodesk's samples (3, 10, 5, 5 and 5 files) and 10 of the 18 held-out models. The other 68 are byte for byte `main`'s: Core Interior, every Revit 2015 to 2022 file, 21 of the 24 Revit 2025 models, `racadv` and BIMcollab, and 8 held-out models. - **Record boxes** (`box_bodies_vs_ifc`): the office as built 10,679 to 183 and at permit 10,799 to 184, its terrain files 20 to 4, RE1 Architecture 52 to 4, Electrical 49 to 2, Mechanical 43 to 0 and Plumbing 60 to 0, and the three stair models 14 to 12. Held-out models, counts only: `modelo_bim` 14 to 0, the AA house 45 to 42, the Revit 2024 to 2027 house 59 or 60 to 51 and its office 49 to 40. - **No property or quantity census regresses on any model** (`psets_vs_ifc`, `qtos_vs_ifc`: equal never falls, different and missing never rise), the IFC4 rules check finds nothing on any of the 93 exports that keep it, and the schema scorer moves only by its count of swept solids that carry a Position. - **Spaces:** both terrain files' family-instance spaces go from 7 to 9 of 9 within 0.1% of Revit's area and 0.01 ft of its outline (`space_profiles_vs_ifc`). - **Walls:** only the office at permit moves. 3 fewer walls are drawn in layers in the GLB (519 to 516), their body now being their saved mesh; two walls' plan extents change and keep Revit's base and top; and the wall ends within 0.1 ft of Revit's go from 1,008 to 1,010. - **Stairs, mixed:** in three Revit 2025 models (`r2025-13` to `15`) one stair body each was a record box 13.12 ft tall (36.07 to 40.05 ft3 against Revit's 8.71 to 9.30) and is now a saved mesh of 8.00 to 8.49 ft3, 5.35 to 5.92 ft tall against Revit's 7.52 to 8.66: it stops short of the stair's top, and its saved graphics report nothing missing. Both bodies differ from Revit's; the farthest Revit vertex from the rvt-rs surface goes from 2.96 to 3.53 ft to 2.56 to 2.75 ft. - **Same-project gates: success on `48150fa1`** (15 samples held to their earlier saves, and the Areas). The 8 beams are held to the 2024 save as saved meshes (42 compared: IfcBeam 37, IfcSlab 5), and the five named roofs are exactly those that differ (4 of 4 on each of rac_advanced's 2026 and 2027 saves, 1 of 1 on rac_basic's). The same scripts fail `main`'s exports (the beams' floor, the roofs: 1 of 4), so the gate sees the default. - [x] This head `2692ac44`: the gates again ([42656259668](https://github.com/DrunkOnJava/rvt-rs/actions/runs/42656259668), the 2024 to 2027 samples), and a Measure with #1608 merged under it ([42648872950](https://github.com/DrunkOnJava/rvt-rs/actions/runs/42648872950): the office and the 2024 samples against `main` at `04f21f71`), which shows the same wall movement and none of #1608's openings lost (the office's extras still 0 of Revit's 220, 158 paired; the terrain opening pair 1 of 1). - [x] The viewer's measurement on this branch (viewer tests run [42631322761](https://github.com/DrunkOnJava/rvt-rs/actions/runs/42631322761), success) and the suite (full CI green). - [x] The witness verdicts replay: CI's Corpus health and IfcOpenShell jobs pass, so Core Interior's observations do not move. ## Audit-honesty checklist - [x] README and docs state the new default and its cost; the claims about which classes are exact name their run and the classes that are not. - [x] The changelog entry names the opt-out in each interface. - [ ] #1191's done-when is not met by this change: its third item, "a class whose meshes are not yet exact stays opt-in", is superseded by the maintainer's decision above, and its first, the faces the saved graphics use decoding, is still open (124 of the office's boxes). The issue stays open. - [x] The classes whose meshes no model scores against Revit's export (roofs, beams, slabs, footings, stair flights) are named in the changelog entry, in `docs/status.md` and in the gate's roof list. ## Legal and contribution hygiene - [x] Licensable under Apache-2.0; no Autodesk source; no fixtures. ## Breaking changes - The IFC, glTF and viewer bodies of every Revit 2023 to 2027 file with family instances other than doors and windows: a box is replaced by Revit's mesh where it decodes whole. Element counts, GlobalIds, placements and properties do not change. - `SavedMeshChoice::Default` and `default_scope` mean every boxed element on Revit 2023 to 2027, not doors and windows; `SavedMeshChoice::DoorsAndWindows` is new, at the end of the enum. - MCP `saved_meshes`: the default is `default`; `doors_and_windows` is now the previous default as an explicit choice. - The viewer's option and its loading stage are renamed. ## Related issues Refs #1191 (it stays open for the 124 undecoded boxes and the four inexact classes). Follow-up: #1612.
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.
Summary
A wall with an edited elevation profile now carries the openings Revit's export writes for it, the pockets of the profile against its convex hull, and the rest of its profile's cut is made in its body. RE-151 read the profile as the box less one opening for each run of its lines that leaves its bounding rectangle; that matched Revit's export on one wall of the five Revit 2024 files (Core Interior's 55840), wrote an opening Revit does not write on ten more, and missed the one Revit writes on the terrain wall 1387731.
Rebased onto
mainafter v0.17.0 (495b212c); ships in 0.18.0. Six commits, squashed on merge: the pockets and the cut, the closure through the rectangle's corner, the value sources, a witness refresh that the redesign reverts, the redesign after Snowdon Towers (below), and the report's measurements (docs only, after the measured commit).Motivation
#1607, found by #1600's Measure. Revit's export writes an opening for a profile-edited wall only for each pocket of the profile against its convex hull, none on a straight sloped top. Measured on the 27 walls with sketch lines in six files (the five Revit 2024 files with Revit's export, and Autodesk's Snowdon Towers Architectural with Revit's own IFC4 export of it, local only, counts only here): the rule predicts 16 pockets on 10 walls; Revit's export holds the 15 it exports with the pocket's polygon, and no opening on the other 17 walls. The Tag is the first line of the pocket's stretch on 12 of the 15; on the 3 of one Snowdon wall (698364) Revit names the last line and nothing read says why (RE-380 section 5, with what was checked). The report is RE-380.
What Snowdon Towers changed in the design: a region RE-151 reads that a pocket equals (55840 and 4 of Snowdon's 7 walls with pockets) was both cut in the wall's body and written as the pocket's opening, and IfcOpenShell 0.9.0.post1 then evaluates the body of Snowdon's wall 698311 as the uncut box. Such a region is now the pocket: the wall keeps its box and the pocket is written in its place, so Core Interior's export is byte-identical to main's apart from the two timestamps (checked on the CI-built binaries). The Tag was the highest id of the stretch, fitted to three walls, and is right on 6 of the 15; the first line is right on 12.
Changes
src/research/partition_schema_mvp/walls.rs,fields.rs:elevation_profile_pockets(the loop, its convex hull, the stretches the hull cuts off, tagged with the first line of the stretch in the loop's counter-clockwise walk, closed by the hull's edge or through the profile rectangle's corner where the edge cuts it off, as Revit closes Core Interior's 55840: 301.65 ft2, where the stretch and the edge hold 71.23; a pocket whose edge ends at a corner with the other end on a side it does not share is not written, and none of the 26 pockets of every Revit 2024 file in the corpus has one),profile_pockets_from_fieldsand the fieldm_profile_pocket_<k>, kept with the wall's openings on Revit 2024.profile_loopiselevation_profile_cuts's chaining of the lines into one loop, shared. Fast failure-first tests of the pure function sit next to it.src/ifc/entities.rs: a variantWallProfilePocket, at the end ofIfcEntity(non-exhaustive).src/ifc/export_content.rs,export_content/wall_profile.rs,wall_tops.rs,src/ifc/mod.rs,step_writer.rs: the passes keep working on RE-151's regions as before. After every pass that reads a wall's body or openings,cut_profiles_from_bodiesdeals with each region: one a pocket equals (same_outline: the same corners in the same order from some corner on, within 0.001 ft) is that pocket, the wall keeps its box and the pocket's opening is written in its place; any other region is taken out of the wall's body as oneIfcBooleanResultdifference (extruded through the wall, 0.01 ft wider each side) and written as no opening, and the wall's pockets are its openings. A wall it cannot do this for keeps its regions as its openings, as before.ProfileCutSourcewall_profile_cut_in_bodysays a cut was made in the body, counted inexported.wall_profile_cuts.tools/re/unfilled_openings_vs_ifc.pycompares the volume of each opening's mesh (0.01 %): its boxes and corner sets are the same for a pocket closed either way, which the first commit's CI showed (the test of Opening geometry from the symbol's cut loop on releases other than 2024 and 2025: no Revit export of another release's openings is in CI #227 reads the area).tests/value_sources_offsets.rsandelement_provenance.rs:ProfileCutSourcehas its row and its readers, sourced from the sketch lines asProfileStubSourceis.docs/export-diagnostics.md,docs/schemas/export-diagnostics.schema.json,tools/re/wall_rule_counts.py,changelog.d/fixed/1607-profile-openings-are-hull-pockets.md, the report RE-380 and a dated addendum todocs/format-reconnaissance.md.Testing
Unit tests are banned in this repository; the one exception is a pure helper, and
elevation_profile_pocketsandsame_outline(no I/O) have fast failure-first tests next to them. The change itself is shown end to end on real files:full / CI passedon the final head (2a199c92)holdout=trueagainstmain(495b212c), run 42642004630 on14ae0999(the one commit after it changes docs only). Six exports move (the office as built and at permit, the two terrain files,rac_basic, Snowdon Towers Architectural); Core Interior's and the 18 held-out models' do not. On the office the unfilled openings written that Revit's export does not go from 8 to 0 on each file and those both write do not change; on each terrain file the one opening Revit writes now pairs, with box within 0.01 ft and volume within 0.01 %, and the two extras are gone; no scorer of a wall's body, top, height, ends or layers moves on any model.same-project gatesis success on14ae0999: 15 samples held to their earlier saves, and the Areas on 4 saves and on the 2021 save. Locally, on the CI-built binaries: Core Interior's IFC is main's apart from two timestamps, and Snowdon's nine profile walls have main's mesh volumes. The numbers are in RE-380 section 4.Audit-honesty checklist
changelog.d/fixed/.docs/format-reconnaissance.md.Legal and contribution hygiene
CONTRIBUTING.md)CLEANROOM.md). Contributor declaration: every fact here comes from byte observations of the BIM4LCA office's files (CC BY-SA 4.0), Autodesk's Core Interior and Snowdon Towers samples and Autodesk's sample projects, with Revit's own IFC4 exports of the first three, and from reading Autodesk's open-source exporter (WallExporter.cs,BodyExporter.cs) for what Revit's export writes; the rule inside its native clipping call is closed and was measured, not read. No Autodesk or ODA SDK source, disassembly, leaked document or NDA material was used, and nothing was copied or translated from revit-ifc.Breaking changes
None to the stable API:
IfcEntity(non-exhaustive) gains a variant at its end andExportedModelDiagnosticsa field with#[serde(default)]. The IFC output changes: a profile-edited wall's openings are Revit's, and the rest of its profile's cut is a boolean difference in its body.Related issues
Closes #1607. Refs #1600, #1604 (the top at the profile's highest point), #1473 (RE-358's stubs).