Skip to content

feat(ifc): room outlines measured against Revit's exports, with a trust marker on every IfcSpace (#1260) (RE-313) - #1281

Merged
DrunkOnJava merged 18 commits into
mainfrom
feat/rooms-space-outlines-measured
Nov 3, 2026
Merged

DrunkOnJava merged 18 commits into
mainfrom
feat/rooms-space-outlines-measured

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Nov 3, 2026 •

Copy link
Copy Markdown
Owner

Summary

Every IfcSpace rvt-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 IfcSpace drawn 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's IFC_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_spaces in the diagnostics and its schema; a line in rvt-ifc's summary.
  • CI: the IfcOpenShell job scores Core Interior (116 of 116) and RE1 Architecture (11 of 11) and fails below those counts in area, outline and boundary.
  • Core Interior's two witness observations refreshed from CI's artifact (IFCPROPERTYSINGLEVALUE 29098 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).

  • Verified end to end on real Revit files: Of 605 room scores read from the stored solid, 604 match Revit's area and outline; 12 rooms per office file keep their box (0 right), as do 44 family-instance spaces (1 right, Parking-space family instances exported as IfcSpace (91 on the BIM4LCA office) #1262).
  • The witness observations are refreshed in this PR
  • W7: the change against main moves no scorer output and no Revit value; only IFCPROPERTYSINGLEVALUE (+1 per space) and the hashes of the 21 models with spaces.

Audit-honesty checklist

…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)
…ceiling step inside Revit's room does not move (#1260) (RE-313)
…, and the 2026 and 2027 row counts 16 held-out rooms (#1260) (RE-313)
@DrunkOnJava
DrunkOnJava marked this pull request as ready for review November 3, 2026 16:41
@DrunkOnJava
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
DrunkOnJava merged commit 7aff06e into main Nov 3, 2026
34 checks passed
@DrunkOnJava
DrunkOnJava deleted the feat/rooms-space-outlines-measured branch November 3, 2026 16:52
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.
@DrunkOnJava

Copy link
Copy Markdown
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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant