Skip to content

feat(ifc): write a roof-joined wall's side areas and volumes where the floors it is joined to leave it whole (#1046) (RE-270) - #1166

Merged
DrunkOnJava merged 18 commits into
mainfrom
feat/1046-wall-areas-joined
Oct 30, 2026
Merged

DrunkOnJava merged 18 commits into
mainfrom
feat/1046-wall-areas-joined

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Oct 30, 2026 •

Copy link
Copy Markdown
Owner

Summary

#1162 and #1152 are on main. rvt-rs now also writes a wall's GrossSideArea, NetSideArea, GrossVolume and NetVolume on a wall joined to roofs, floors or footings that lie clear of it, when its record confirms its length: 18 more office walls as built and 22 at building permit, Revit's on every one, none different and none Revit's export leaves out (RE-270, the second rule). 2 of each are walls #1152 cuts at a floor.

Motivation

#1046 step 1 (walls). The first rule (#1162) takes the walls nothing joins to or cuts. Most of the rest are joined to a floor or roof at the top. Two readings decide whether such a wall is still the prism its record's box gives: whether the elements it is joined to leave it whole, and whether the box's ends are Revit's. The first is measured on rvt-rs's own bodies, the second by the record's Length (RE-252: the curve cut back at its joins is as long as the curve, both ends read twice alike). Each is needed: with the joins clear but no length, 45 of 53 office walls as built are right; with both, 18 of 18 (RE-270 §4).

The wall top cuts (#1152)

The pass runs after wall_tops, on purpose (stated in export_content/wall_areas.rs and at the call site): it reads each extrusion at its final height, and a wall that pass cut has the floor's underside for its top, which that floor then clears.

RE-267 §7 found Revit's export writes no Height, and so (RE-270 §1) no side areas, on the cut walls it draws as a mesh: 1746099 and 1767978 as built, 1488456, 1746099, 1795193 and 3363820 at permit, and nothing read tells them from the rest. None of them gets a value: each holds a step the rule does not allow (a cut pair or a cutout), or a body that is not the record's box with a confirmed length (1767978 as built is drawn from its line). The rule takes 2 cut walls in each office (2897628 and 2897629, joined to floor 2991742 alone, Revit's on all four quantities in both files); the 3 other cut walls with a confirmed length and a record-box rectangle (2872774, 2872775, 2872777) are also joined to slab 1875411, whose body lies inside their height, so they stay out. No cut wall gets a value Revit omits, so no exclusion of wall_top_cut_at_covering_floor walls was needed; the exclusion would cost 2 walls in each office.

Changes

  • src/research/native_walls.rs, src/research/partition_schema_mvp/{fields,walls}.rs: WallRecords::bounded, the walls whose record holds no step but the harmless ones, JoinToRoofGStep and CleanPairGStep, with the ElementIds their roof and floor joins name (top and base), and WALL_BOUNDED_FIELD on each.
  • src/ifc/export_content/wall_areas.rs (new), src/ifc/export_content.rs: a pass after wall_tops writes the four quantities of the first rule on each such wall that carries a Length, whose body is the record's box (a rectangle) and whose named elements are slabs, roofs or footings drawn as plain extrusions lying wholly above its top or wholly below its base. prism_quantities is the one formula both rules use.
  • Core Interior's witness observations (one wall more: IFCQUANTITYAREA 489 to 491, IFCQUANTITYVOLUME 356 to 358, copied from Measure's witness output), RE-270 §4, README, W7 (its own line, as docs(criteria): write W6's and W7's values below the table, one item per line, so pull requests changing different values stop conflicting #1177 sets out), the supported profile, the reconnaissance addendum and changelog.d/added/wall-areas-volumes-joined.md.

Testing

Unit tests are banned in this repository; none added. Measure 41120485504: this branch (972d215) against main (6eca8e0, with #1152 and #1162), every model and every scorer. Only qtos_vs_ifc and Core Interior's witness observations move; every other scorer's output and diagnostics.decoded.parameter_value_count are byte-identical to main's. Since that head, the branch only merges main commits that touch no src/ file (probes, psets_vs_ifc.py, the holdout scrub, docs), so the exports are unchanged. 41124825328 lists each wall (tools/re/wall_quantities_vs_ifc.py).

office as built at permit R2025
walls the second rule adds 18 22 0
... of them cut by #1152 2 2 0
walls carrying the four, with #1162's 67 70 91
the four equal to Revit's, of those 67 70 91
the four equal before, after (each quantity, of 579 and 607 as built, 565 and 589 at permit) 49 to 67 48 to 70 91, unchanged
quantities equal, before 27,948 27,878 775
quantities equal, after 28,020 27,966 775
different, before and after 1 (the mullion) 1 0
written that Revit's export omits 0 0 0

The R2025 walls under roofs are all under sloped roofs, which rvt-rs draws as solids and the rule does not measure. Left out and measured: walls a floor passes through, cut pairs, cutouts, embedded walls and sweeps (RE-270 §6).

  • Verified end to end on real Revit files (BIM4LCA office, CC BY-SA 4.0; puzzbobb's R2025 models, Apache-2.0): Measure above, tools/re/wall_quantities_vs_ifc.py and probes/examples/probe_1067_native_dump.rs reproduce it
  • Witness observations refreshed in this PR
  • No local build: rustfmt only; CI is the gate

Audit-honesty checklist

  • README, W7, the supported profile and the reconnaissance addendum say what is and is not written
  • Changelog fragment under changelog.d/added/
  • Limitations (walls a join intrudes on, sloped roofs, walls without a confirmed length, mesh-drawn cut walls) are in RE-270 §4 and §6 and this body
  • Reverse-engineering finding: scorer, probe, addendum and report included

Legal and contribution hygiene

  • Apache-2.0; clean-room: revit-ifc is read for what Revit's exporter writes and cited (CreateWallBaseQuantities), not copied

DrunkOnJava added a commit that referenced this pull request Oct 30, 2026
…per line, so pull requests changing different values stop conflicting (#1177)

## Summary

Every W6 or W7 change edits one table cell, a single line of 1,800 and
5,400 characters, so any two open pull requests that add a value
conflict, and each landing put the others in conflict again (#1152,
#1163, #1170 today). This moves the two "value now" cells into sections
below the table, `### W6 measured now` and `### W7 measured now`, with
one sentence or list item per line. Markdown joins the lines of a
paragraph with spaces, so the page reads the same: joined back, each
section is byte-identical to the cell it replaces (checked by script
against `main`). The table's cell now links to its section; the
requirement, bar and status stay in the table.

## Changes

- `docs/release-1.0-criteria.md`: the two cells moved, an HTML comment
in each section saying why the lines break where they do, and one
sentence in "Keeping this page".

## Testing

Docs only. Checked by script that the text of each section, its lines
joined by spaces, equals the cell on `main` (b17d628) exactly, that no
line begins with Markdown list, heading, quote or table syntax, and that
every other line of the page is unchanged. `tools/maintainer/audit.py`
reads the page only for the issue numbers it cites, which are all still
there.

## Audit-honesty checklist

- [x] No status, bar or measured value changes
- [x] Changelog fragment: not needed (layout of a docs page)
- [x] No emojis, no private paths or personal addresses in committed
files

## Related issues

None; open W6 and W7 pull requests (#1166, #1171 to #1175) move their
additions into the new sections when they next merge `main`.
@DrunkOnJava

Copy link
Copy Markdown
Owner Author

Owner review, re-measured on top of #1152 and #1162 (Measure 41120485504 at 972d215 against main 6eca8e0; main has since gained only docs, scorer and probe commits, no src/ change):

  • Rule: a wall with only harmless steps plus roof or floor joins and clean joins, a confirmed Length, and a join-trimmed record-box rectangle gets prism_quantities. This applies only where every element its joins name is a slab, roof or footing drawn as plain extrusions whose span lies wholly above the wall's top or below its base (1e-3 ft). A sloped roof or anything else named leaves the wall out.
  • Pass order: the pass runs after wall_tops on purpose. A wall fix(elements): cut a wall's top at the floor that covers it (#1067) (RE-267) #1152 cut has the floor's underside as its top, which that floor then clears. 2 such walls per office take the rule (2897628, 2897629), equal to Revit's. The three cut walls also joined to slab 1875411, which lies inside their height, stay out. None of RE-267 §7's mesh-drawn walls (where Revit writes no Height or side areas) is selected.
  • Result: the four quantities are on 67, 70 and 91 walls, all equal to Revit's (per-wall list in run 41124825328). Equal 27,948 → 28,020 as built, 27,878 → 27,966 at permit, R2025 unchanged. Different stays 1 (the mullion), and nothing Revit omits is written. Only qtos_vs_ifc and Core Interior's witness observations move (IFCQUANTITYAREA 489 → 491, IFCQUANTITYVOLUME 356 → 358, refreshed here).

Armed.

@DrunkOnJava
DrunkOnJava enabled auto-merge (squash) October 30, 2026 20:46
@DrunkOnJava
DrunkOnJava merged commit 5b4dc14 into main Oct 30, 2026
28 checks passed
@DrunkOnJava
DrunkOnJava deleted the feat/1046-wall-areas-joined branch October 30, 2026 20:52
Repository owner deleted a comment from chatgpt-codex-connector Bot Oct 31, 2026
Repository owner deleted a comment from chatgpt-codex-connector Bot Oct 31, 2026
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