Repository navigation
feat(ifc): room outlines measured against Revit's exports, with a trust marker on every IfcSpace (#1260) (RE-313) - #1281
Merged
Conversation
…st Revit's export (#1260) (RE-313)
…ed solid's or its record box, and the diagnostics count the boxes (#1260) (RE-313)
…ture's rooms against Revit's exports and fails below the measured counts (#1260) (RE-313)
…entroid offset beside its outline source (#1260) (RE-313)
…body is its record box; the rooms page, the report and the changelog (#1260) (RE-313)
…sure score them (#1260) (RE-313)
…eOutlineSource property (#1260) (RE-313)
…number or name (#1260) (RE-313)
…ceiling step inside Revit's room does not move (#1260) (RE-313)
…gate pins the boundary too (#1260) (RE-313)
…, and the 2026 and 2027 row counts 16 held-out rooms (#1260) (RE-313)
2 tasks done
…rce, the docs name the outline metric of each figure, and the gate pairs by GlobalId (#1260) (RE-313)
DrunkOnJava
marked this pull request as ready for review
November 3, 2026 16:41
DrunkOnJava
enabled auto-merge (squash)
November 3, 2026 16:41
DrunkOnJava
added a commit
that referenced
this pull request
Nov 3, 2026
… solid, as on 2025 (#1260) (RE-314) (#1288) ## Summary For #1260: a Revit 2026 or 2027 room takes the outline of its stored solid, read as on 2025, instead of its record box. `partition_room_boundaries::ROOM_SOLID_SUPPORTED_REVIT_VERSIONS` stopped at 2025, so on those releases every room kept its box. An L-shaped or notched room was written larger than it is (`rac_basic`'s Master Bedroom: 35.34 m² against 26.97 m²). ## Motivation inevitable-co-ai reported 7 of `rac_basic`'s 14 rooms larger on 2026 and 2027 than on 2015 to 2025, and a room of a 2026 house that Measure holds out (#1260). Room and space import is the first workflow being made dependable end to end (Griffin, 2026-11-03). ## Changes - `src/research/partition_room_boundaries.rs`: 2026 and 2027 join the supported releases; the doc states the measurement. - `reports/element-framing/RE-314-room-outlines-2026-2027.md`. - `docs/supported-profile.md` (2026 row) and `docs/support-matrix.json` (2027 notes). - `changelog.d/fixed/1260-room-outlines-2026.md`. ## Testing - **Probe:** Measure [41653302934](https://github.com/DrunkOnJava/rvt-rs/actions/runs/41653302934), `probe_re101_room_solids` with no release gate. All 257 rooms of `rac_basic`, `rac_advanced`, `rme_basic` and `rme_advanced` give the same verdict and outline area in their 2026 and 2027 saves as in 2025. - **Exports:** Measure [41655496833](https://github.com/DrunkOnJava/rvt-rs/actions/runs/41655496833), this change against `main`, 60 models. 13 exports change: the 2026 and 2027 saves of those four samples, and the five held-out 2026 and 2027 models. The other 47 are byte-identical. - **Held-out models:** Measure [41668846939](https://github.com/DrunkOnJava/rvt-rs/actions/runs/41668846939), scored by RE-313's space scorer from PR #1281, counts only. - The 2026 house: area within 0.1% of Revit's on 7 → 10 of 12 rooms, and outline within 0.01 ft on 0 → 0. - Four 2026 and 2027 projects: 16 of 16 rectangular rooms before and after. ## Not yet measured - Why the 2026 house's outlines are not within 0.01 ft of Revit's while 10 of its areas are: the house is held out. - Rooms whose solid does not close keep their box on every release alike: 6 of 91 on `rac_advanced` and 50 of 76 on `rme_basic` and `rme_advanced`. Another lane works on that. - A room's prism volume (RE-296) stays 2024 and 2025. - What else follows the outline on the 13 changed exports, none of it scored: - which space furniture, sanitary terminals and proxies are contained in (`contain_in_spaces`, point in outline); - the room schedule CSV; - the plan SVG. - Whether the reported 2026 room is among the 2 the held-out house still has off: counts cannot show it, so this PR does not close #1260. ## Legal and contribution hygiene - [x] Apache-2.0 - [x] No Autodesk proprietary source, decompiled internals or NDA material ## Breaking changes None. ## After review RE-314 quotes no held-out room. Its §5 lists the unscored consequences above, and its list of identical models names the 8 other held-out ones. "Same outline" now reads "same verdict and area". `docs/evidence.md` and the 2026 support-matrix entry note room outlines.
DrunkOnJava
added a commit
that referenced
this pull request
Nov 3, 2026
… the 2018 to 2021 pairs (#1260) (#1261) (#1293) ## Summary `docs/rooms.md`'s held-out rows, re-measured on `main` now that #1281 (the space scorer) and #1288 (2026 and 2027 rooms from their stored solid) have both landed: Measure [41680717786](https://github.com/DrunkOnJava/rvt-rs/actions/runs/41680717786), `main` at 21cb2ef, held-out models, counts only. ## Changes - **2026 and 2027 row:** stored solid, as on 2025. The 16 held-out rectangles are 16 of 16 in area, boundary and outline. - **Held-out 2026 house:** area within 0.1% on 10 of 12 (was 7 as boxes). Boundary and outline 0 of 12. - **New rows for the 2021 pairs held out since #1284:** - Gdynia: 18 of 19 spaces paired; area 18, boundary 0. - Warmond: 179 paired; area, boundary and outline 174. - **Spaces written for none of Revit's:** Vitoria 2018 (73), until #1286; BIM Whale 2021 (8), whose spaces are Areas. - **Removed:** "2021 projects decode with no rooms". The 2021 pairs read theirs, and BIM Whale has no rooms. ## Testing Docs only. Every figure is a count line of the cited run.
Owner
Author
|
Automated Claude Code review (the maintainer's review agent; it read the code, the scorer and run 41658742590): no blocking items. Fixed anyway in 148acc2: every IfcSpace in a geometry export carries SpaceOutlineSource, the docs name which outline metric each figure uses, and the CI gate pairs spaces by GlobalId. |
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
Every
IfcSpacervt-rs writes is scored against Revit's export (Measure, and a CI gate on Core Interior and RE1 Architecture), and says in its own property set whether its outline is the room's stored solid or its record bounding box (RE-313, rooms-first lane of #1260).Motivation
Room and space import for an importer (#1260, #1261, #1262). Neither CI nor Measure scored room outlines, and an
IfcSpacedrawn as its record box looked the same as one drawn from the room's solid.Changes
tools/re/space_profiles_vs_ifc.py, added to Measure'sIFC_SCORERS; its count lines are kept for held-out models (scrub-holdout-results.sh).RvtElementRecordGeometry.SpaceOutlineSource(stored_solid,record_box,saved_mesh,family_body,none);exported.bounding_box_spacesin the diagnostics and its schema; a line inrvt-ifc's summary.IFCPROPERTYSINGLEVALUE29098 to 29214, verdicts replay PASS).docs/rooms.md,reports/element-framing/RE-313-space-outlines-measured.md, changelog fragment, status docs.Testing
Unit tests are banned: end to end on real files only. Measure runs are in the report (41655922826 baseline on main, 41658742590 this change against main, 41660946955 final scorer, 41657521650 probe).
IFCPROPERTYSINGLEVALUE(+1 per space) and the hashes of the 21 models with spaces.Audit-honesty checklist
docs/rooms.md,docs/supported-profile.md,docs/status.md,docs/export-diagnostics.md)changelog.d/added/record_boxuntil Revit 2026/2027: room outlines larger than the same rooms in 2015-2025 saves and in Revit's IFC #1260 reads their solids.