Skip to content

feat(ifc): a curtain mullion turned near 45 degrees about its own axis gets its Span and Length (#1016) - #1782

Merged
DrunkOnJava merged 4 commits into
mainfrom
feat/1016-turned-mullion-span-2
Nov 11, 2026
Merged

DrunkOnJava merged 4 commits into
mainfrom
feat/1016-turned-mullion-span-2

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Nov 11, 2026 •

Copy link
Copy Markdown
Owner

Summary

Pset_MemberCommon.Span (and the same length as Qto_MemberBaseQuantities.Length) is not written on 18 of the BIM4LCA concrete office's 10,003 curtain mullions as built. All 18 are mullions that the record's instance transform turns about their own axis, so add_mullion_span finds the mullion's own three axes in the record but oriented_box (RE-106) refuses the record box: the turn is so near 45 degrees that its two horizontal extents are nearly equal and the box's extents along the mullion's own axes are not determined. The existing code then returns, and so does the RE-418 mesh rule, which needs the axis attach_mullion_plain_hosts remembers and that memory is keyed on a known axis.

Where such a mullion's own Z is one of the model's axes, nothing about the box is undetermined for the length's direction: the mullion's own X and Y are square to that model axis, so the record box's extent along it is the box's extent along the mullion's own Z, exactly. That extent is now written as the Span, and as the Length. The two sides across the mullion stay unknown, so no NetVolume or NetSurfaceArea is taken from the box (they were not written before either, and the mesh pass already gives NetVolume).

Of the 18, 6 have their own Z on the model's Z axis and get the value; the other 12 are turned about a horizontal axis, their own Z crossing the model's axes, and keep no Span or Length.

Evidence

The gap is real, and nothing decided to leave it out. docs/evidence.md ("Mullion span") and docs/supported-profile.md state the rule and the counts (9,984 of 10,003 as built, 1 different, 18 missing); psets_vs_ifc.txt line 51 and qtos_vs_ifc.txt line 39/111 agree. No maintainer decision leaves these out, no closed negative finding covers them (RE-19, RE-20, RE-399 do not touch mullions), and RE-226 §5 / RE-418 §1 record the 18 as the case the rule does not reach.

Which 18, matched by Tag between revit.ifc and rvt-rs.ifc. Found by their Pset_MemberCommon carrying only Reference and IsExternal (20 such sets; 2 of them are the NetVolume-missing pair): 3024562-3024564, 3024608-3024610, 3027069-3027071, 3028417-3028419, 3028722-3028724, 3028884-3028886.

Tag Revit Span Revit Length rvt-rs record box height body
3024562, 3024563, 3024564, 3027069, 3027070, 3027071 700 mm 700 mm 0.7 m saved mesh, a vertical prism 0.05 x 0.05 x 0.7
3024608, 3028722 (and the two clusters of three beside them) 100.84757937952148 / ...2281 / ...2712 mm same 0.05 m saved mesh, a 0.05 m tall prism whose 50 x 100.85 mm plan section is skewed, so its length runs on a plan diagonal

Revit's own placement for 3024562 has Z (0,0,-1) and RefDirection 43.6 degrees off the axes; its neighbour 3024561, turned 41.7 degrees, has a Span because cos(2*41.7) clears RE-106's 0.1 determinant and its solve succeeds. So the boundary is RE-106's, not a new one.

The rule. For a mullion whose own axes are read and whose box along them is refused, where exactly one component of its own Z exceeds INSTANCE_TURN_MIN_RADIANS, the Span is the record box's extent along that model axis. This is an identity, not a fit: the record box is the axis-aligned box of the box along the mullion's own axes (RE-106), and if own Z is a model axis the two other own axes contribute nothing to that extent.

Measured, on the two IFC4 files only. On the 6: 0.7 m from the box on all 6, Revit's 700 mm on all 6 (checked element by element on 3024562-3024564 and 3027069-3027071). On the 12: their own Z is not a model axis (the plan-skewed prism of 3024608 and 3028722 shows it), so the rule writes nothing there.

What it leaves out: the 12 mullions turned about a horizontal axis; and, as before and unmeasured here, a mullion of any model whose record box overruns its solid, which RE-418 fixes only where the axis is known.

Changes

  • src/ifc/export_content.rs: add_mullion_span keeps the read axes in own, and where the box along them is not solved it takes the length from the new length_on_a_model_axis(axes[2], size); the doc comment names the case and says the sides across the mullion stay unknown, so no volume or area is taken.
  • docs/supported-profile.md, docs/evidence.md: the Span sentence and the "Mullion span" row state the added case, and the counts are marked as those before it.
  • changelog.d/fixed/1046-mullion-span-of-a-mullion-turned-about-its-own-axis.md: new fragment.
  • No test pins Pset_MemberCommon or these quantities, so tests/ is untouched.

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 Pset_MemberCommon.Span and Qto_MemberBaseQuantities.Length equal, before after different
Office as built 9,984 of 10,003 9,990 of 10,003 1 to 1
Office at permit 10,012 of 10,031 10,018 of 10,031 1 to 1
Timber office as built 7,857 of 7,876 7,863 of 7,876 1 to 1
Timber office at permit 7,850 of 7,872 7,856 of 7,872 4 to 4
  • Both names gain the same 6 on each file. No other model moves for this change and no sample save changes.

Still open

  • The 12 mullions per file whose own Z runs across the model's axes get no length.

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

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.

Audit-honesty checklist

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

Legal and contribution hygiene

  • Apache-2.0
  • 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.
  • No fixture with real-world personal data

Breaking changes

None.

@DrunkOnJava
DrunkOnJava enabled auto-merge (squash) November 11, 2026 22:38
@DrunkOnJava
DrunkOnJava merged commit d1a5c0e into main Nov 11, 2026
36 checks passed
@DrunkOnJava
DrunkOnJava deleted the feat/1016-turned-mullion-span-2 branch November 11, 2026 22:39
DrunkOnJava added a commit that referenced this pull request Nov 12, 2026
…ght (#1016) (#1783)

## Summary

Revit's IFC4 export of the BIM4LCA office as built writes
`Qto_SpaceBaseQuantities.Height` on 308 minus 44 family-instance spaces;
rvt-rs
writes it on the 234 rooms and on none of the 30 Areas. This change
writes an
Area's `Height` as the height of its body, from its Level up to the
Level above,
on Revit 2024 to 2027, and leaves a Revit 2015 to 2023 Area without one,
since
no export of that release's Area height is measured.

## Evidence

**The task is real and still open.** `docs/rooms.md:134` lists exactly
this value
under "What is not measured" for Areas ("which Revit writes on an Area
and rvt-rs
does not yet"), and the Areas row of `docs/support-matrix.json` says the
same. No
issue closes it against us: #1016 is the open W7 quantity umbrella and
puts the
remainder on #1046, #1165, #1203 (closed, columns), #1207 (spaces'
`GrossVolume`,
stepped rooms' `NetVolume`, Revit 25's area quantities), #1208 and
#1209, none of
which names an Area's height; #763 is closed and is about the 44
family-instance
spaces. `RE-317` §2 measured the value as the same number as the Area's
extrusion
depth on all 30 Areas of both office files, and `RE-324` §"not measured"
leaves it
out for 2015 to 2023. Nothing in the code or docs is a decision against
writing
it.

**Where the 14 are.** From `qtos_vs_ifc.txt`: `Height: 248, equal 234,
different 0,
missing 14`, `on IfcSpace x14`, and 6 more "on a repeated key, against
the object
held: missing 6"; `rvt-rs quantities Revit does not write: 0`, so rvt-rs
writes
`Height` on exactly 234 spaces. `space_kinds_vs_ifc.txt` splits the 308
`IfcSpace`
into 234 rooms, 30 Areas and 44 family instances. In `revit.ifc` a
family-instance space's `Qto_SpaceBaseQuantities` holds `GrossVolume`
and
`NetVolume` and no `Height` (e.g. `#787354`), while every one of the 30
Area
spaces carries a one-quantity `Qto_SpaceBaseQuantities` that is an
`IfcQuantityLength('Height',…)` equal to that Area's
`IfcExtrudedAreaSolid` depth
(e.g. `#69195`, height `3399.9999999999982` and depth
`3399.9999999999982`). The
Areas are `GFA 250mm` 1-5, `GFA` K/1/2/3/P/4/5, `BUSINESS SPACE` LIIK1,
`OFFICE`
TSTO1-TSTO11 and `HEATED NETAREA` K/1/2/3/4/5a.
`tools/re/qtos_vs_ifc.py` keys a
space by its `Name` and counts a repeated key apart: the 6 names shared
by two or
three Areas (1, 2, 3, 4, 5, K) are exactly its 6 "repeated key" heights,
and the
14 missing are the 14 uniquely named Areas — LIIK1, TSTO1 to TSTO11, P
and 5a.
There are no other `IfcSpace` without `Height` in the office's export.

**The rule.** rvt-rs already holds the number: a drawn Area carries
`AREA_BODY_HEIGHT_FIELD` (`m_area_body_height`), the elevation of the
next
building story less its Level's (`RE-317`), and extrudes its body by it.
Against
Revit's own `Height` in the same file the two agree inside the census's
1e-5
relative tolerance: area `1` 3.400000 m against 3399.9999999999982 mm,
TSTO5
3.950000 against 3949.9999999980364, 5a 5.970000 against
5970.0000000000118.
So an Area that rvt-rs draws gets that number; an Area it refuses keeps
none. A
room and a family-instance space are untouched (`ROOM_HEIGHT_FIELD` is
read
unchanged, and neither kind has an Area field).

**What stays out, and why the releases are gated.** A given Revit
release's export
is the oracle only where it exists: the Area height is measured on Revit
2024
(the office, both files, 30 of 30). Revit 2025 to 2027 Areas hold the
same body
height as that save — the same-project gate compares it, with `lowest
and highest
vertex`/`height` in `tools/re/areas_across_saves.py` — and `revit-ifc`
takes the
height from the Level distance for every release (cited in `RE-317` §2),
so they
are written too, labelled like the Areas themselves. A Revit 2015 to
2023 Area
keeps none: the only export of one is an IFC2X3 export whose quantities
are not
measured (`RE-324`). The gate cannot be 2024 alone:
`tools/re/readers_across_saves.py`
compares the sample projects' saves from `FIRST_YEAR = 2024` against the
2025 save
and fails a property written here and not in the reference, and
`Qto_SpaceBaseQuantities.Height` is in its `ADDED` list. An Area that
rvt-rs
refuses a body for still has no `Height`, so on a project where Revit
writes one
on a refused Area the value stays missing, not wrong.

## Changes

- `src/research/partition_area_records.rs`: `AREA_SPACE_HEIGHT_FIELD`
(`m_area_space_height`) and `AREA_HEIGHT_REVIT_VERSIONS` (`2024` to
`2027`), and
a drawn Area's `body.height_feet` is pushed under the new field on those
  releases only.
- `src/ifc/export_content.rs`: `add_space_height` takes that field as
well as
  `ROOM_HEIGHT_FIELD` and writes it as `Qto_SpaceBaseQuantities.Height`.
- `docs/rooms.md` (the room sentence and the unmeasured bullet),
`docs/supported-profile.md` (the space quantity sentence) and the Areas
row of
`docs/support-matrix.json`: an Area's height is written on Revit 2024 to
2027,
  and 2015 to 2023 stays out.
- `changelog.d/fixed/area-space-height.md`: the entry.

No test pins this value, so `tests/` is unchanged.

## 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_SpaceBaseQuantities.Height` equal, before | after |
different |
|---|---:|---:|---:|
| Office as built, at permit | 234 of 248 each | 248 of 248 each | 0 |
| Timber office as built, at permit | 231 of 244 each | 244 of 244 each
| 0 |
| Concrete housing as built | 82 of 89 | 88 of 89 | 0 |
| Concrete housing at permit | 81 of 88 | 87 of 88 | 0 |
| Timber housing as built | 84 of 91 | 90 of 91 | 0 |

- Both same-project gates pass, and rac_advanced's 2026 and 2027 saves
hold the `Height` of 116 spaces of their 2025 save (from 91), none
differing.
- Sample saves: 198 Areas in 6 saves gain the value (25 in each
rac_advanced save of 2024 to 2027, 96 in Snowdon Towers Architectural, 2
in Structural).

## Still open

- A 2015 to 2023 Area gets none: the only export of one of their Areas
is an IFC2X3 one whose quantities are not measured (RE-324).

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

## 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 (#1769 re-meshes trimmed faces, and
#1771, #1773, #1781, #1782, #1787 and #1789 landed). This head,
`0f82cb8e`, is `main` at `d1a5c0ee` merged in, with one docs line merged
word by word; its change against `main` is this pull request's own
commit and nothing else (byte-equal outside `docs/`, word-equal inside).
Measure 43108424934 measured the nine batch changes together on `main`
with #1769 (`3f2a04c4` against `e7ac68e7`, rows registered on #1636
first): every count above repeats, and the same-project gates pass.

## 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 that referenced this pull request Nov 12, 2026
… and Height (#1165) (#1784)

## Summary

The 25 openings of the BIM4LCA office as built whose
`Qto_OpeningElementBaseQuantities.Depth` Revit's export writes and
rvt-rs's does not are the openings rvt-rs writes for a door that also
cuts a second wall (`ifc::wall_cut_openings`'s `door_cut`, `quantities:
false` since RE-338). They are written with no quantity set at all. This
change writes their `Depth`, the extent the opening is extruded across
that wall by, and leaves their `Width` and `Height` out.

## Evidence

- `evidence/nordic-office-as-built/qtos_vs_ifc.txt`: `Depth: 308, equal
283, different 0, missing 25`, all 25 `on IfcOpeningElement x25`; a
further 59 openings rvt-rs does not write are counted apart, and `rvt-rs
quantities Revit does not write: 0`.
- `evidence/nordic-office-as-built/unfilled_openings_vs_ifc.txt`, by
kind of cutter and host: `IfcCurtainWall in IfcWall` 27 of 27,
`IfcFireSuppressionTerminal in IfcWall` 39 of 39, `none in IfcWall` 30
of 30, `none in IfcSlab` 36 of 36 and `IfcSlab in IfcSlab` 1 have `Depth
equal`; `IfcDoor in IfcWall` is the one kind with `revit: 39, written:
25` and `Depth in Revit's: 25` but no `Depth equal` line — rvt-rs writes
those 25 openings and no `Depth` on any.
- The counts close exactly: 283 equal = 187 openings of a door or window
whose symbol cuts an outline (the filled openings, whose `Depth` the
writer already writes) + 96 of the 99 wall-cut openings it writes (three
curtain walls are written that Revit's export lacks); 283 + 25 = 308. So
the 25 are precisely the door-in-second-wall openings, and Revit writes
`Depth` on every one of them.
- What Revit's value is. RE-321 §3 (the rectangular, cabinet and
curtain-wall openings, all 96 equal) and RE-244 (the 187) find `Depth`
to be the extrusion's depth, i.e. the extent the opening passes through
the wall by, which is what `thickness_feet` already is for a wall-cut
opening. On a door's second-wall opening that extent is the door's own
width: `revit.ifc`'s opening `#77141` (Tag 1383546, unfilled, voiding
`Basic Wall:VS-2:1352055`) carries `Width` 100, `Height` 2100, `Depth`
810 mm — the profile is the second wall's plane (the door's own wall
thickness by the door's height) extruded 810 mm across it, and 810 mm is
the door's own opening's across extent, which RE-338 §3 measured as the
door's own opening box (equal to rvt-rs's box within 0.01 ft on 25 of 28
as built, and on all 25 these openings are the ones written). `Depth` =
3048 mm on exactly the 11 openings where the second wall runs *along*
the door's wall, which rvt-rs leaves out
(`door_second_wall_parallel_to_door_wall`, 9 of the 14 it leaves out of
the 39).
- Rule, and what stays out: `Depth` is written on every wall-cut opening
whose host holds that quantity (all 607 walls that rvt-rs writes hold a
`Width` here, and with `--no-base-quantities` the list is empty and
nothing is written). `Width` and `Height` stay missing on the 25:
Revit's export swaps them on a door's opening (RE-244, RE-235 §5) and
nothing read says it does not on this one, even though `#77141`'s are
the rectangle's extents. So `Width` 152 (missing 56) and `Height` 152
(missing 56) are unchanged, and the 14 door openings rvt-rs does not
write are untouched.

## Changes

- `src/ifc/step_writer.rs`: the wall-cut opening's quantity set is now
written where its host holds the quantity, not only where `Width` and
`Height` are written too; `Width` and `Height` are still pushed only for
the rectangular, cabinet and curtain-wall openings, so their output is
byte for byte what it was, and a door's second-wall opening gains a set
holding `Depth` alone.
- `src/ifc/entities.rs`, `src/ifc/wall_cut_openings.rs`: the doc
comments of `quantities` say why that opening takes only its `Depth`.
- `docs/supported-profile.md` and `docs/release-1.0-criteria.md`: the
sentences listing what an opening a door cuts in a second wall carries
gain the `Depth`, and say that its `Width` and `Height` stay out.
- `changelog.d/added/1165-door-second-wall-opening-depth.md`: new
fragment.

## 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.

The first draft wrote `Depth` alone. `Height` was added after reading
four such openings in Revit's export of the office (Width, Height and
Depth 100 / 2100 / 810 and 300 / 2100 / 1210 mm, the same way round as
on any rectangular opening; the table is in the last comment on #1749).

| Model | `Depth` equal, before | after | `Height` equal, before | after
| newly different |
|---|---:|---:|---:|---:|---:|
| Office as built | 283 of 308 | 308 of 308 | 96 of 152 | 121 of 152 | 0
|
| Office at permit | 262 of 295 | 295 of 295 | 75 of 137 | 108 of 137 |
0 |
| Timber office as built | 286 of 302 | 302 of 302 | 101 of 142 | 117 of
142 | 0 |
| Timber office at permit | 247 of 281 | 263 of 281 | 74 of 121 | 90 of
121 | 0 |
| Concrete housing as built, at permit | 72, 62 of 79 | 75, 65 of 79 |
18, 6 of 35 | 21, 9 of 35 | 0 |
| Timber housing as built, at permit | 67 of 68 each | 68 of 68 each | 7
of 19 each | 8 of 19 each | 0 |

- The timber office at permit read 9 `Depth` values different before and
reads the same 9 after.
- Sample saves: one opening in each rac_basic save of 2024 to 2027 gains
the two values.

## Still open

- `Width`, which Revit's export writes too, stays out: Revit's is the
thickness of the wall the door stands in, and rvt-rs's outline is 0.2 mm
wider than that on two of the four openings read, which the scorer would
count as different.
- A second wall that runs along the door's wall is still not written.

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

## 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 (#1769 re-meshes trimmed faces, and
#1771, #1773, #1781, #1782, #1787 and #1789 landed). This head,
`44bafde9`, is built on #1783's merged head `0f82cb8e`, so until #1783
lands its diff against `main` also shows #1783's change; its own change
(`0f82cb8e..44bafde`) is this pull request's two commits and nothing
else (byte-equal outside `docs/`, word-equal inside). It is armed only
after #1783 has merged. Measure 43108424934 measured the nine batch
changes together on `main` with #1769 (`3f2a04c4` against `e7ac68e7`,
rows registered on #1636 first): every count above repeats, and the
same-project gates pass.

## 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 that referenced this pull request Nov 14, 2026
…long its own axes down to an axes determinant of 0.05 (#1193) (#1972)

## Summary

`ORIENTED_BOX_MIN_DET` goes from 0.1 to 0.05. On the BIM4LCA office that
gives 6 short curtain mullions of each concrete file and 8 of each
timber file, which had no `Length` on #1193's mullion-Span row, their
`Span` and `Qto_MemberBaseQuantities.Length` from the box along their
own axes. Revit's `Length` for them is 0.100848 m (0.3309 ft). The other
6 on each concrete file and 4 on each timber file stay on #1193.

## Motivation

#1760's probe printed the recorded own axes of the concrete office's 18
mullions without a set (Measure 43545512638). Six are turned 45° about
the vertical and get their `Length` from RE-226's rule since #1782. The
other 12 have their own X vertical and their own Z horizontal, turned
some 45° off the model's axes, so neither model-axis rule applies, and
`oriented_box` refused all 12 at the 0.1 cutoff. Their |det| (of the
absolute axes) are 0.015, 0.028, 0.039, 0.053, 0.082 and 0.096, two
mullions each. The cutoff at 0.05 solves the 6 at 0.053 to 0.096.
3024608 (0.082) gives 0.3306 ft by hand from its record (0.354516 ×
0.344793 × 0.164042 ft), 0.0003 ft from Revit's. The 6 at 0.015 to 0.039
solve to the same half-extents (0.082, 0.082, 0.165 ft) but are left:
nothing here checks a solve that close to singular. No second condition
separates them, since all 12 give positive half-extents. The timber
files have no probe output; their 8 and 4 are Measure's counts.

## Changes

- `src/ifc/export_content.rs`: `ORIENTED_BOX_MIN_DET` 0.05, with the
determinants in its doc.
- A changelog fragment.

## Testing

Measure
[43546686921](https://github.com/DrunkOnJava/rvt-rs/actions/runs/43546686921),
unfiltered against `main` with nordic, r2025, samples and holdout.
Registered before it runs:

1. On the four office files, `Qto_MemberBaseQuantities.Length` and
`Pset_MemberCommon.Span` equal rise by up to 12 each, and "different"
does not rise.
2. A mullion or panel whose determinant falls between 0.05 and 0.1 is
now drawn as its oriented box rather than its record box.
`mesh_bodies_vs_ifc` and `oriented_boxes_vs_ifc` must not get worse on
any model, and any `NetVolume` or `NetSurfaceArea` that newly appears
must read equal.
3. Held-out counts: no "different" rises.

If anything reads different, the cutoff goes back to 0.1 and the 12 stay
on #1193.

## Result

Measure 43546686921 on head 12a3a5d against main 0ce6c5d: 116 of 120
exports equal, and the 4 that move are the four office files. Only
`qtos_vs_ifc` and `psets_vs_ifc` change. Diagnostics differ by
`parameter_value_count` alone (+6, +8).

| File | `Length` missing | `NetSurfaceArea` missing | different |
|---|---|---|---|
| concrete office, as built and permit | 12 → 6 | 120 → 111 | 1 → 1 |
| timber office, as built and permit | 12 → 4 | 127 → 121 | 1 → 1 |

Row 1 holds (up to 12, different does not rise); rows 2 and 3 hold (no
other scorer file changes; held-out unchanged). The later commits change
only the doc comment and the fragment.

- [ ] `tools/check-local.sh`: no local builds; `rustfmt --check` passes;
CI runs the rest.

## Audit-honesty checklist

- [x] The number in the doc is the one measured by hand; the run
decides.
- [x] A changelog fragment.

Part of #1193.
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