Skip to content

fix(ifc): the mesh path writes the NetSurfaceArea of a mullion whose partner end the boxes keep, and the offices gain 34 and 33 values equal to Revit's (#1790) (RE-439) - #1791

Merged
DrunkOnJava merged 11 commits into
mainfrom
fix/1790-mesh-path-kept-partner-ends
Nov 12, 2026
Merged

DrunkOnJava merged 11 commits into
mainfrom
fix/1790-mesh-path-kept-partner-ends

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Nov 11, 2026 •

Copy link
Copy Markdown
Owner

Summary

RE-404 draws a curtain mullion's Qto_MemberBaseQuantities.NetSurfaceArea from its saved mesh and refused every mullion with a kept count of 2 and a partner end, as it could not tell a partner the boxes of the wall saw and kept (RE-438: Revit counts a partner end where an oblique mullion or a mullion across inside lies at it) from a continuation on another curtain wall that they missed. The boxes now say which of a mullion's two ends is kept with a partner (KeptEnds, the end at the box's -axis side first), the mesh's two ends, which prism_along lists in the order the triangles first meet them and not along the axis, are told by the side of the record axis each lies on, and a mullion is refused only for a mesh partner at an end the boxes did not keep with a partner. A subtraction of counts would let a partner the mesh missed at one end and a continuation it found at the other cancel (rvtReview's read of the first commit), so the ends are told apart.

What moves (Measure 43110403389, unfiltered with keep_ifc and the held-out pairs, 4c2bb990 against main at 6439e62f; the same-project gates and the semantic check pass): 126 exports, 121 identical and 5 differ, by Qto_MemberBaseQuantities.NetSurfaceArea of an IfcMember alone, added and never changed, no element added or removed.

NetSurfaceArea of the offices: equal, different, missing main this change
concrete office as built 9,496, 0, 507 9,530, 0, 473
concrete office at permit 9,524, 0, 507 9,558, 0, 473
timber office as built 7,396, 0, 480 7,429, 0, 447
timber office at permit 7,280, 1, 591 7,313, 1, 558

The quantity census's equal rises by 134 (155,742 to 155,876) with different unchanged at 26; the property census does not move; rac_advanced does not move and Snowdon Towers Architectural gains 4 values (no Revit value to meet). Of the 70 (concrete) and 69 (timber) mullions the rule releases with a kept partner end, 34 and 33 are written, each equal to Revit's. The other 36 and 36 each lie beside a mullion the rule leaves unread (28 and 28 beside overlapped mullions only), which RE-438's report had taken for the mesh path's refusals: #1794.

Motivation

#1790 (found reading RE-438's Measure) and #1046 (W7).

Changes

  • src/research/partition_schema_mvp/mullion_ends.rs: KeptEnds and kept_ends_with_partners; one failure-first test of the pure function (the joint of two pieces is hidden and counts no kept end with a partner, an oblique brace keeps it and each piece counts one, in the -axis, +axis order).
  • src/ifc/mesh_volume.rs: partners_the_boxes_missed, which tells the mesh's ends by the side of the record axis and counts the partners not at an end the boxes kept with one; three failure-first tests of the pure function (the cancellation case, the mesh's ends listed against the axis and the axis turned over, ends with no length between them).
  • src/research/partition_schema_mvp/curtain.rs, src/reader.rs, src/ifc/saved_meshes.rs: carry the kept ends with a partner to the check.
  • reports/element-framing/RE-439-mesh-path-kept-partner-ends.md, the reconnaissance addendum, the criteria entry, docs/status.md and changelog.d/fixed/1790-mesh-path-kept-partner-ends.md; RE-438's report, entry, addendum and fragment, which took all 70 and 69 for the mesh path's refusals, are corrected.

Testing

Not done

Related issues

Refs #1790, #1767, #1046, #1636, #1794.

…ut, a partner with a mullion across inside is read, and a joint centred under a mullion across is hidden (#1767) (RE-438)
…and tabulates what Revit does at each end (#1767) (RE-438)
… exports move, the offices gain 107 to 108 NetSurfaceArea values, 3 of the 4 different at permit are Revit's (#1767) (RE-438)
… one, so a continuation the boxes missed at an end they kept with none is refused whatever lies at the other (#1790) (RE-439)

The count rule subtracted the kept ends the boxes saw a partner at from the partner ends the mesh finds, so a partner the mesh missed at one end and a continuation on another wall it found at the other cancelled. The boxes now say which of the two ends is kept with a partner (the -axis end first), the mesh's two ends, which come in the order their planes were found, are told by the side of the record axis each lies on, and only a mesh partner at an end the boxes did not see one at is missed. Ends with no length between them are not told apart and count as missed.
# Conflicts:
#	src/research/partition_schema_mvp/mullion_ends.rs
DrunkOnJava added a commit that referenced this pull request Nov 11, 2026
… the report it carries from it (#1791) (#1792)

## Summary

The RE-id guard (`tools/ci/check_re_id_reuse.py`, in the PII guard job)
no longer fails a pull request for a report it carries from the pull
request it is stacked on. It read the reports a pull request adds
against `main` and failed the later of two open pull requests that added
one id. A stacked pull request holds its base's commits, so the base's
report is in its file list at the same path: #1791 (stacked on #1771)
was told to renumber RE-438, a report #1771 added and #1791 did not
write. The same path is one report seen twice. The same id at another
path, and a second file under the base's id, still fail.

## Motivation

A false red on `fast / PII guard` for #1791 (`RE-438 is also added by
#1771, opened first ... renumber this report`). Renumbering would have
broken the citations of RE-438 in #1771; the guard was wrong, not the
numbering.

## Changes

- `tools/ci/check_re_id_reuse.py`: a path an earlier open pull request
adds that this pull request adds too is no clash (`p not in paths`); the
docstring says why.
- `tools/ci/test_check_re_id_reuse.py`: three failure-first tests of the
pure `reused` judgement: the stacked pull request's inherited report
beside its own next id passes; a stacked pull request that adds a second
file under the base's id fails ("names 2 new reports"); a clash with a
different pull request's id at another path still fails beside a shared
one.
- `docs/maintaining.md`: the sentence that describes the rule.

## Testing

- [x] `python3 tools/ci/test_check_re_id_reuse.py`: 13 tests pass (10
before, 3 new), run the way CI runs them.
- [ ] `fast / PII guard` on this pull request; `full / CI passed` on the
final head. #1791's guard re-runs green once this lands and its branch
merges `main`.

No output of `rvt-ifc` changes, so no Measure.

## Audit-honesty checklist

- [x] No user-visible change: CI tooling only, no changelog fragment.
- [x] No reverse-engineering finding.
- [x] No emojis, no private paths in committed files.

## Legal and contribution hygiene

- [x] Apache-2.0. No Autodesk proprietary source, internals or NDA
material.
- [x] No new test fixtures.

## Breaking changes

None.

## Related issues

Refs #1791, #1771.
…rtner end is kept, none different, and the other 36 and 36 lie beside unread mullions (#1790) (RE-439)

Measure 43110403389, 4c2bb99 against main 6439e62: 5 of 126 exports move, only mullions' NetSurfaceArea. Corrects RE-438's report, criteria entry, reconnaissance addendum and fragment, which took the mesh path for the refusal of all 70 and 69.
@DrunkOnJava DrunkOnJava changed the title fix(ifc): the mesh path writes the NetSurfaceArea of a mullion whose partner end the boxes keep (#1790) (RE-439) fix(ifc): the mesh path writes the NetSurfaceArea of a mullion whose partner end the boxes keep, and the offices gain 34 and 33 values equal to Revit's (#1790) (RE-439) Nov 11, 2026
@DrunkOnJava
DrunkOnJava marked this pull request as ready for review November 11, 2026 23:01
@DrunkOnJava
DrunkOnJava merged commit f1cc7ba into main Nov 12, 2026
63 checks passed
@DrunkOnJava
DrunkOnJava deleted the fix/1790-mesh-path-kept-partner-ends branch November 12, 2026 01:08
DrunkOnJava added a commit that referenced this pull request Nov 12, 2026
…y other, but for those with a mullion across centred on an end or an overlapped axis on the plane of a free end, and the offices gain 353 and 320 values equal to Revit's (#1794) (RE-441) (#1795)

## Summary

RE-400 left a curtain mullion out whenever an end lay within 6 cm of the
box of a mullion that was left out or overlapped (another lies over it).
Read offline from the second debug build of RE-438, the 314 mullions of
the BIM4LCA concrete office as built and the 280 of the timber office
whose only unread neighbours are overlapped ones get Revit's kept count
from the rule on 312 and 272, Revit giving the other 2 and 1 no value
(3029185 and 3029301); the rule is wrong on 7 of the timber office's, of
two kinds: a mullion across centred on an end (3 of 28), and an end with
no partner where an overlapped vertical standing on the bar has its axis
on the plane of the end (4 of 4, none of the 216 chain ends without
one). The mullions beside an overlapped mullion are now read like any
other except those two kinds; the neighbours of a mullion left out stay
unread.

What moves (Measure 43115049478, unfiltered with `keep_ifc` and the
held-out pairs, `eb0fcdb1` against #1791's head `4c2bb990`; the
same-project gates pass): 126 exports, 109 identical and 17 differ, by
`Qto_MemberBaseQuantities.NetSurfaceArea` of an `IfcMember` alone, added
and never changed, no element added or removed.

| `NetSurfaceArea` of the offices: equal, different, missing | #1791 |
this change |
|---|---|---|
| concrete office as built | 9,530, 0, 473 | 9,883, 0, 120 |
| concrete office at permit | 9,558, 0, 473 | 9,911, 0, 120 |
| timber office as built | 7,429, 0, 447 | 7,749, 0, 127 |
| timber office at permit | 7,313, 1, 558 | 7,629, 1, 242 |

The quantity census's equal rises by 1,342 (155,876 to 157,218) with
different unchanged at 26 and `rvt-rs values Revit does not write`
unchanged at 29; the property census does not move. The offline count
(279 and 242 on the offices as built) is written in full, and 74 and 78
more, equal to Revit's too: the released mullions of #1791's 36 that lie
beside overlapped mullions only, and the neighbours of the mullions
RE-438 released. Thirteen exports with no Revit export to meet gain 562
values of the same rule: `rac_advanced` 122 a save, `rme_advanced` and
`rme_basic` 3 a save, Snowdon Towers Architectural 50.

## Motivation

#1794 (the neighbours of overlapped mullions were most of the 473 and
447 mullions of the two offices that still had no `NetSurfaceArea`, the
largest single gap of either quantity census) and #1046 (W7).

## Changes

- `src/research/partition_schema_mvp/mullion_ends.rs`:
`kept_ends_with_partners` reads a mullion beside an overlapped mullion
unless a mullion across is centred on one of its ends or an end with no
partner has the axis of an overlapped mullion on its plane
(`centred_on_end_plane`); three failure-first tests of the pure function
(a stub beside an overlapped pair is read when the pair's axes lie at
its side face and left out when one is centred on the plane of its free
end; a mullion with a bar centred on an end is read alone and left out
beside the pair; a mullion beside one left out is still not read).
-
`reports/element-framing/RE-441-mullions-beside-overlapped-mullions.md`,
the reconnaissance addendum, the criteria entry, `docs/status.md` and
`changelog.d/fixed/1794-mullions-beside-overlapped-mullions.md`.

## Testing

- Unfiltered Measure 43115049478 read against the four rows registered
on #1636 ([comment
6808980511](#1636 (comment)),
read in [comment
6809537179](#1636 (comment))):
all hold, the first over its stated bound (up to 279 and 242: the
offline count was an undercount, and every value written is equal) and
the third with exports not listed (`rme_advanced` and `rme_basic`).
- `eb0fcdb1` is archived as
`refs/archive/2026-11-11/cited/eb0fcdb168d5`. The change adds no read,
so it is not timed.
- `full / CI passed` on the final head.

## Not done

- 120 (concrete) and 127 (timber) mullions of the offices as built still
have no value: the 19 and 23 with a lone inside end, the 18 with no
axis, the mullions with a mullion across centred on an end (29 and 28, 3
of them wrong), 4 and 8 free ends under an overlapped axis, those beside
a mullion still left out, and 17 of the concrete office that the rule
leaves unread for a reason the offline search does not find.
- A test of the end face rather than its centre point is not tried
(RE-268's 3 mm test of the point does not see a mullion standing on a
bar's face).

## Related issues

Refs #1794, #1790, #1767, #1046, #1636.
DrunkOnJava added a commit that referenced this pull request Nov 12, 2026
…Area where its outline is square-cornered (#1016) (#1786)

## Summary
`Qto_OpeningElementBaseQuantities.Area` is now written on an opening a
floor's sketch makes where its outline is not a rectangle, and on no
other unfilled opening. On the BIM4LCA office as built that is the 5
openings the census lists as missing, and the 31 rectangular sketch
openings, on which Revit's export writes no `Area`, keep none.

## Evidence
The census (`evidence/nordic-office-as-built/qtos_vs_ifc.txt`):
`Qto_OpeningElementBaseQuantities.Area: 5, equal 0, different 0, missing
5` (line 42), all on `IfcOpeningElement` x5 (line 123); 3 more on
openings rvt-rs does not write (line 7) and 1 on a repeated key (line
78).

Matching the two files of the office by Tag, the 5 are the same five
objects: **3190490, 3143563, 3146720, 3147725, 3151525**, all named
`Floor:VP-1:418397` in both files, each an opening of a floor's sketch
(RE-151) that rvt-rs already writes, with its box and its `Reference`
values equal.

- **What Revit's value is.** In every one of the 13 opening quantity
sets of Revit's export that hold an `IFCQUANTITYAREA`, the `Area` is the
area of the polygon the opening's body extrudes: e.g. 3.4096666 m2 for
opening 3190490, whose profile is a 890 x 3890 mm rectangle less a 230 x
230 mm notch (3.409662 m2 from rvt-rs's own outline, read in its file's
metres), and 9.634416 m2 for 3146720 against 9.634423 m2 from that
outline. The same holds for the four roof hatch openings (tag 2991742),
the two wall profile openings (1671974) and the door opening that cuts
two walls (1623922), which this change does not touch.
- **What tells the 5 apart.** rvt-rs writes 36 openings of a floor's
sketch on this file. Of those, exactly 5 have an outline that is not a
rectangle (a 6-corner outline with a notch, closed by a repeated last
point) and 31 are 5-point rectangles — and the 5 are Revit's 5, the 31
Revit's 31, on which Revit writes `Width` and `Height` and no `Area`.
Nothing else separates them: the 5 sit in five different floors
(1384047, 1451421, 1457693, 1457785, 1474132) among openings of the same
name, the same kind and the same depth.
- **A second model against the rule.** The housing as built's rvt-rs
export holds 11 openings of a floor's sketch (`Floor:VP-2`,
`Floor:AP-1`, `Floor:VP-1.OL`, `Floor:VP-1.KL`), all 5-point rectangles,
and its census misses no `Area` at all: the rule adds nothing there.
- **Rule.** On an opening a floor's sketch makes
(`IfcEntity::VoidOpening`, not a face-hosted cut) whose outline has more
than four corners, write `Area`, the outline's shoelace area in square
feet, as the wall profile opening's `Area` is written (RE-381). Read
from evidence: 5 of 5 equal on the model measured, none on the 31 Revit
gives none.
- **What it leaves out.** A quadrilateral that is not a rectangle (no
measured export has one, and nothing tells it from the 31); every other
kind of unfilled opening (a roof's hatch, a curtain wall's cut, a
cabinet's, a door's in a further wall, a wall's own profile opening),
which have their own rules; and a door's or window's opening. It also
does not touch the existing 3 `Area` values rvt-rs writes on the timber
office where Revit writes `Width` and `Height` instead (RE-402) — that
is the wall profile opening's rule, not this one.
- **`--no-base-quantities`.** The value is written only where rvt-rs
writes base quantities at all, the gate a door opening's `Depth` and a
wall profile opening's `Area` have (RE-242): with the flag every `Qto_`
set is empty and no opening quantity is written.

## Changes
- `src/ifc/step_writer.rs`: in the loop that writes an opening of a
floor's sketch, a boolean of whether any `Qto_` set still holds
quantities, and, on such an opening whose outline has more than four
corners, its `Area` as `IfcQuantityArea`, the outline's area (the
shoelace expression the wall profile opening's `Area` already uses).
- `docs/supported-profile.md`, `docs/evidence.md`: the two sentences
that list the openings' base quantities now say the floor sketch
opening's `Area` is written.
- `changelog.d/fixed/40-floor-void-opening-area.md`.

## Measured

One Measure run scored this change together with nine others it was
drafted beside (run 43086493417, head `f5f54467`, base `5e3ac5b0`: every
model, with the BIM4LCA office and housing, the Revit 2025 models,
Autodesk's samples of every release, rac_advanced, BIMcollab and the
held-out pairs; every shard and both same-project gates passed; rows
registered on #1636 before it was read). Each change writes a value of a
different name, so the rows below are this change's alone. Both sides'
exports were kept, and the 58 sample saves, which no Revit export
scores, were compared value by value. After the second read the stack
was rebuilt on `main` as seven changes (the pipe change left it, and the
roof and floor-opening rules were narrowed to square-cornered outlines)
and measured once more in full (run 43100937918, head `53c19487` against
`e8a99d03`, rows registered first, read on #1636): all shards and both
same-project gates pass, "different" and "values Revit does not write"
are unchanged on every model, and the rows below repeat except where a
line says otherwise.

| Model | `Qto_OpeningElementBaseQuantities.Area` equal, before | after
| different |
|---|---:|---:|---:|
| Office as built | 0 of 5 | 5 of 5 | 0 |
| Office at permit | 0 of 6 | 6 of 6 | 0 |
| Timber office as built, at permit | 0 of 12 each | 12 of 12 each | 0 |

- "quantities Revit does not write" is unchanged on every model, the
timber office's 3 included.
- Before the narrowing Core Interior gained 20 `Area` sets on floor
sketch openings that are not rectangles, which no Revit value scores
(its export writes no base quantities); after it none is written there.
- Sample saves: 12 openings gain the value, 10 in Snowdon Towers
Architectural and 2 in Structural.
- **Narrowed after the second read:** an outline with a corner that is
not a right angle now gets none. Revit takes the area from the sketch's
curves, and an arc reaches the outline as chords within 0.0005 ft, whose
polygon is short of it by more than the scorer's 1e-5 on a small radius.
The counts above, Core Interior's 20 and the samples' 12 included, are
from before the narrowing. **After it (the final run):** all four office
counts are kept (5 of 5, 6 of 6, 12 of 12, 12 of 12, none different),
and Core Interior's export is byte-identical: none of its 20 openings
passes, so no witness observation moves and no refresh is needed.
- **Tightened again:** the `Area` is written only where the outline has
more than four square corners, counted without the joints it runs
straight through, so a rectangle one of whose edges is two sketch lines
(five points, four corners) is left out: whether Revit calls that loop a
rectangle is not measured. The helper that counts them is pure and has
seven tests of the ways it can fail.

## Still open

- A rectangle gets no `Area` (Revit's export writes its `Width` and
`Height` there), and a four-cornered outline that is not a rectangle is
left out as unmeasured.

Stack: this is change 7 of 7; each branch holds the ones before it, so
its own diff is its last commits until those land. First draft: #1758,
then #1780.

## Testing

- Built, linted and tested by CI on this head; nothing was built on a
workstation.
- Verified end to end on real Revit files against Revit's own exports:
the Measure runs named above, which anyone can repeat with `gh workflow
run measure.yml --ref main -f ref=<this head> -f
base=e8a99d03be8a76a2c8871ea8cc28d036653ec6e2 -f nordic=true -f
r2025=true -f samples=true -f racadv=true -f bimcollab=true -f
holdout=true`.
- No test was added: no unit test, and no pinned count moves except
where the body says so.
- `main` has moved since those runs: the eight batch changes before this
one landed, with #1769, #1771, #1791 and others. This head, `422e9432`,
is `main` at `000fc1af` merged in. The merge resolved one conflict in
`src/ifc/export_content.rs`, where this pull request's own commits
rewrite the corner helper #1785 added, by taking this branch's side; the
resolved `export_content.rs` and `step_writer.rs` are byte-equal to the
files Measure 43108424934 measured at `3f2a04c4`, and the change against
`main` is this pull request's own three commits (byte-equal outside
`docs/`, word-equal inside).
- Because a source conflict was resolved, this head has an unfiltered
Measure of its own against `main`, with kept exports: run 43133784518,
rows registered on #1636 before it is read. Its same-project verdict and
the advisory semantic verdict land on this head.
- Autodesk's sample saves have no Revit export in Measure, so nothing
scores them; the kept exports are read by element instead. In run
43113322070 (all nine batch changes on `main`) the only sample saves
that gain this value are the two Snowdon Towers 2024 saves,
Architectural 10 and Structural 2 openings, with no existing value
changed or removed. Revit's own IFC4 export of the architectural file
was made without base quantities, so those 12 `Area` values are written
where no Revit export can check them.

## Audit-honesty checklist

- [x] Docs state what this change writes and what it leaves out
- [x] A changelog fragment under `changelog.d/`
- [x] No emojis, private paths or personal data in committed files
- [x] Limits are in the body above and in the code's doc comments

## Legal and contribution hygiene

- [x] Apache-2.0
- [x] No Autodesk proprietary source, decompiled internals or NDA
material. Where revit-ifc (CLEANROOM.md source 5) is cited, it is read
and cited by file and class, and no code is copied.
- [x] No fixture with real-world personal data

## Breaking changes

None.
DrunkOnJava added a commit to puzzbobb/rvt-rs that referenced this pull request Nov 12, 2026
…e report takes RE-445

Merging main brought DrunkOnJava#1800, which makes a decoded graph's fields rvt::research::graph_value::Fv: forge reads its format map through it. RE-439 is DrunkOnJava#1791's report on main, so this one is RE-445 (report, probe and every citation of the units reading).
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