Skip to content

fix(rooms): a Revit 2026 or 2027 room takes the outline of its stored solid, as on 2025 (#1260) (RE-314) - #1288

Merged
DrunkOnJava merged 5 commits into
mainfrom
fix/1260-room-outlines-2026
Nov 3, 2026
Merged

DrunkOnJava merged 5 commits into
mainfrom
fix/1260-room-outlines-2026

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Nov 3, 2026 •

Copy link
Copy Markdown
Owner

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, 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, 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, scored by RE-313's space scorer from PR feat(ifc): room outlines measured against Revit's exports, with a trust marker on every IfcSpace (#1260) (RE-313) #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 Revit 2026/2027: room outlines larger than the same rooms in 2015-2025 saves and in Revit's IFC #1260.

Legal and contribution hygiene

  • Apache-2.0
  • 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.

… solid, read as on 2025, instead of its record box (#1260) (RE-314)
…ed solid's outline, measured on Autodesk's samples and the held-out models (#1260) (RE-314)
…he outline unscored, and the evidence pages note 2026 and 2027 room outlines (#1260) (RE-314)
@DrunkOnJava
DrunkOnJava marked this pull request as ready for review November 3, 2026 16:26
@DrunkOnJava
DrunkOnJava enabled auto-merge (squash) November 3, 2026 16:26
@DrunkOnJava
DrunkOnJava merged commit 75b917f into main Nov 3, 2026
28 checks passed
@DrunkOnJava
DrunkOnJava deleted the fix/1260-room-outlines-2026 branch November 3, 2026 16:46
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 and the Measure runs): two blocking items, fixed in 84abce0. RE-314 quoted one held-out room's area, where held-out models are quoted as counts only; it now quotes none. It also lists what follows a room's outline unscored on 2026 and 2027: furniture assignment to spaces, the room schedule CSV and the plan SVG.

DrunkOnJava added a commit that referenced this pull request Nov 3, 2026
…the outline its solid's faces make, labelled stored_solid_faces or stored_solid_approximate (#90) (RE-316) (#1292)

## Summary

A room whose stored solid RE-101's exact walk does not close on its
record box is read again from the faces its solid lists, up to the
solid's own end, and labelled apart in `SpaceOutlineSource`:
`stored_solid_faces` where the faces' edges close as the walk reads
them, `stored_solid_approximate` where a column overlaps a wall (its
area depends on whether Revit's export takes the column off) or the
outline falls up to 0.02 ft short of the box (Griffin, 2026-11-03: close
them, labelled). `stored_solid` stays the exact walk's. On the BIM4LCA
office as built all 13 rooms that kept their box take an outline (9
`stored_solid_faces`, 4 `stored_solid_approximate`); at building permit
11 of 12 do (all `stored_solid_approximate`).

## Motivation

Rooms first (#1260): a room written as its record box where it is not a
rectangle is the failure that matters. RE-313 left 12 rooms per office
file on their box with the cause not found; RE-316 finds it (a record
longer than 0x200 bytes between two faces, walls on lines up to 0.0015
ft apart, a column overlapping a wall, a solid longer than the 64 KB
window).

Round 3 of the review found room 1671995 at 323% over Revit's area (350%
at permit) and asked for a guard. The 323% is the scorer's: it compares
the faces of Revit's mesh that point up, and Revit's ceiling over that
room is mostly not flat (1218.33 ft² in 9 patches). Revit's floor under
it is 5177.37 ft² and ours 5154.12, 0.45% under; the same metric reads
RE-313's 66% room (2611271) as 66% off where its floor agrees to 0.1%.
See RE-316 section 3.

## Changes

- `src/research/partition_room_boundaries.rs`: the span reads its edges
two ways. As the walk reads them (`stored_solid_faces`: one outer loop,
nested loops, no crossing, and a span bounded by the solid's list of
objects and a gap of 1,024 bytes) or as the boundary of the region they
wind around (`stored_solid_approximate`). Column-involved rooms are no
longer labelled as the exact reading.
- `tools/re/space_overlaps_vs_ifc.py` (new scorer, registered in
Measure's IFC scorers; its count lines are kept for held-out models by
`tools/ci/scrub-holdout-results.sh`): each space's upward-face, floor
and every-face plan areas against Revit's, and how much of a room lies
inside the walls and rooms around it.
- Docs and labels: `docs/rooms.md`, `docs/export-diagnostics.md` (+
schema), `docs/status.md`, `docs/supported-profile.md`,
`docs/evidence.md`, `changelog.d/changed/1260-room-solids-resolved.md`,
`reports/element-framing/RE-316-room-solids-resolved.md`; the closure
probe says why each resolved room's edges do or do not close.

## Testing

Unit tests are banned in this repository: none added. End to end on
Measure (commands in RE-316 section 6).

- [ ] `tools/check-local.sh` passes: not run on this Mac (no local
compute); CI's fmt, clippy, doc, MSRV, real-file and IfcOpenShell jobs
ran green on this branch
- [x] Verified end to end on real Revit files, against Revit's own IFC4
exports: the BIM4LCA office (CC BY-SA 4.0) as built and at permit with
`space_profiles_vs_ifc` and `space_overlaps_vs_ifc`, room by room in
RE-316 section 3; Core Interior and RE1 Architecture unchanged (116 of
116, 11 of 11); a held-out Revit 2021 project, counts only
- [x] Unfiltered Measure against `main`:
[41728355227](https://github.com/DrunkOnJava/rvt-rs/actions/runs/41728355227)
(`-f base=main -f nordic=true -f r2025=true -f samples=true -f
holdout=true`, head a00e705, base 7fd339e): scorer output differs on
five files, the exports' hashes on the office, the held-out project and
one `rme` room per file; nothing else
- [ ] N/A: not a performance change

Rooms per outline source (export diagnostics):

| | `stored_solid` | `stored_solid_faces` | `stored_solid_approximate` |
room `record_box` |
|---|---:|---:|---:|---:|
| Office as built | 221 | 9 | 4 | 0 |
| Office at permit | 222 | 0 | 11 | 1 (3095831) |

Area within 0.1% of Revit's export, the scorer's upward faces (before to
after): office as built 221 to 230, at permit 222 to 232, Warmond (held
out, counts only) 174 to 179 of 179; Core Interior and RE1 unchanged. By
Revit's floor: `stored_solid` 221 of 221 and 222 of 222;
`stored_solid_faces` 9 of 9 (and 6 of 6 on Warmond);
`stored_solid_approximate` 0 of 4 as built (0.45% to 0.68% under) and 10
of 11 at permit (1671995, 0.45% under).

**The review's four guards** (wall overlap, shell closure, volume,
containment) were measured on every room the span reads. None rejects
1671995 and keeps the rooms that agree: it covers 0.03% of itself with
walls (the agreeing rooms 0.10% to 7.59%, the walk's rooms up to 23%)
and 0.00% of other rooms (0.00% on every room); a closed shell and the
volume need the floor and ceiling faces, which `face_at` reads on 3 of
the 13 rooms as built; containment holds on all. No guard is applied, no
room is refused for a guard's reason. The residual (a closed loop of
another element's faces inside the box and within 1,024 bytes of the
last listed face) is not closed by these either; a foreign face that
crosses a wall makes the room `stored_solid_approximate`.

**Where this differs from the round-3 instruction:** the fallback
(withhold the faces reading) would turn 1671995 and the 9 exact rooms
back into boxes, which are 1.0% over Revit's floor for 1671995 and 3% to
67% over for the nine. Instead the exact label is narrowed to rooms
whose edges close as the walk reads them, and every column-involved room
is `stored_solid_approximate` with its measured error. Withholding it is
a small change to `resolved_outline_of_solids` if the coordinator wants
it.

## Audit-honesty checklist

- [x] README / docs reflect the current state after this PR
- [x] A changelog fragment:
`changelog.d/changed/1260-room-solids-resolved.md`
- [x] Limitations resolved and introduced are in RE-316 sections 3 to 5
and docs/rooms.md: the approximate rooms, the scorer's upward-face
limit, the unproven foreign-face bound, the six `rac_advanced` rooms
with round columns, 49 of 50 `rme` rooms, Snowdon Towers' seven and room
3095831 keep their box
- [x] Commit messages describe what and why
- [x] No emojis
- [x] No private paths, personal email addresses or internal jargon in
committed files
- [x] A reproducible probe or scorer under `probes/examples/` and
`tools/re/`, and a dated report

## Legal and contribution hygiene

- [x] Apache-2.0
- [x] No Autodesk proprietary source, decompiled internals or NDA'd SDK
content: byte observations on files Measure fetches
- [x] No fixtures

## Breaking changes

None to the API outside `rvt::research`. `SpaceOutlineSource` gains two
values; an importer that matched `stored_solid` exactly now sees
`stored_solid_faces` and `stored_solid_approximate` on rooms that were
`record_box` before.

## Screenshots or output samples

IFC output changes on 13 + 11 office rooms, the held-out project's 6 and
one `rme` room per file: their `IfcSpace` body is the outline where it
was the box. Room by room in RE-316 section 3.

## Related issues

Refs #90 (rooms still drawn as their box: this resolves 13 office rooms
as built and 12 at permit, and lists those that keep it: office 3095831
at permit, six `rac_advanced` rooms with round columns, 49 of 50 `rme`
rooms, Snowdon's seven). #1260 (closed by #1288) is the rooms-first
report that started this.
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.

Revit 2026/2027: room outlines larger than the same rooms in 2015-2025 saves and in Revit's IFC

1 participant