Skip to content

fix(ifc): a curtain mullion or panel drawn as its oriented box is offered the saved mesh Revit kept for it, and says why where it keeps the box (#1689) (RE-421) - #1696

Merged
DrunkOnJava merged 4 commits into
mainfrom
fix/1645-oriented-boxes-offered
Nov 11, 2026
Merged

DrunkOnJava merged 4 commits into
mainfrom
fix/1645-oriented-boxes-offered

Conversation

@DrunkOnJava

Copy link
Copy Markdown
Owner

Summary

A curtain mullion or panel that RE-106 draws as the box along its own axes (BodySource partition_family_instance_oriented_box) was never offered the saved-mesh pass and never carried a SavedMeshRefusal: saved_meshes::is_replaceable_box listed the record box, a beam's box and a turned box, not this one. It now takes it. On Revit 2023 to 2027 the body becomes the mesh Revit saved where all of the mesh decodes; where it does not, or on any other release, the element keeps its box and says why.

On the BIM4LCA office the 325 (concrete) and 327 (timber) oriented boxes go to 2 and 1, Qto_MemberBaseQuantities.NetVolume reads equal to Revit's on 323 and 326 more mullions of each office (10,001 of 10,003 and 7,875 of 7,876 as built), none different, and the boxes left carry partial: disconnected UV boundary. Autodesk's rac_advanced of 2023 to 2027 draws all 148 of its oriented boxes from their meshes and Snowdon Towers Architectural all 1,019; on Revit 2015 to 2022 the boxes stay boxes and now say not_offered: release_outside_2023_to_2027.

Closes #1689.

Motivation

#1689 (the gap), #1645 (every box says why, which 0.18.0 stated as true of every box but this one), #1636 (second-project measurement); follows RE-106 (oriented curtain boxes), RE-403 (a mullion's box is not its solid), RE-404 and RE-418 (what the mesh gives a mullion). The row was registered on #1636 before any run was read: #1636 (comment).

Changes

  • src/ifc/saved_meshes.rs: is_replaceable_box also takes INSTANCE_ORIENTED_BODY_SOURCE.
  • docs/export-diagnostics.md: the sentence that said an oriented box "has none yet" now lists it with the other boxes that stay boxes with a reason.
  • changelog.d/changed/1689-oriented-box-mullions-offered-saved-mesh.md and report RE-421.

Testing

Measured end to end on the Measure runner (no local builds here; CI builds the change), and read against the rows registered on #1636 above:

  • unfiltered run 42961457553 (head f2e6cb11, kept under refs/archive/2026-11-11/cited/f2e6cb11c016, against 979ec428, every flag, 126 models each side): 102 exports byte-identical and 24 move, the office's four files, the six racadv models of 2015 to 2020 and 14 Autodesk samples. The housing's files, Core Interior, Einhoven, RE1 and the 18 held-out models are unchanged (none holds an oriented box; the registered row expected some of them to). No line of qtos_vs_ifc or psets_vs_ifc of any model gains a different. same-project gates passed;

  • run 42964821937, tools/re/mullion_profiles_vs_ifc.py: 132 of the concrete office's 166 mullions and 142 of the timber one's 173 whose body was not Revit's now read "body Revit's"; none that was written with Revit's body is not any more (the 7,560 and 5,292 fully equal stay so). The 34 and 31 that still differ include 32 and 29 whose mesh is Revit's body to within 1.2e-5, past the scorer's 1e-5;

  • run 42964819358 kept both sides' exports of the 58 samples; tools/re/ifc_element_diff.py over the 14 that move finds only the oriented-box IfcMember and IfcPlate changing (SavedMeshRefusal added on 2015 to 2022, BodySource and NetVolume on 2023 to 2027), no element added or removed.

  • tools/check-local.sh: not run locally (no local builds here); CI builds and tests it

  • Verified end to end on real Revit files: the runs above

  • If this touches the IFC exporter: the runs above, and the report states what it does not touch (Revit 2015 to 2022, which keep the boxes with a reason)

Audit-honesty checklist

  • Docs state only what ships (docs/export-diagnostics.md, the fragment and the report describe this change)
  • Changelog fragment under changelog.d/changed/
  • Limitations in the report: one project with a Revit export (the BIM4LCA office, Revit 2024), and the Autodesk samples have none to score against
  • No emojis, no private paths

Legal and contribution hygiene

  • Apache-2.0; no code from another source
  • No Autodesk proprietary source, decompiled internals or NDA'd SDK content

Breaking changes

None: no public type or signature changes; an oriented-box mullion or panel of Revit 2023 to 2027 is drawn as a mesh, and every one that is not says why.

…saved mesh Revit kept for it, as every other box is (#1645) (RE-421)
…-mesh pass is now offered, 323 and 326 more NetVolume equal on the office, with the 14 samples it moves read element by element (#1689) (RE-421)
@DrunkOnJava

Copy link
Copy Markdown
Owner Author

Second read, the cost of the pass this change sends more bodies through: Measure's timing job, run 42968376230, this PR's head 1ab30c91 against its base 274165fb, rvt-ifc built at both, each file exported three times in turn on one runner, the median kept (the reference models, the BIM4LCA office as built and at permit, and Autodesk's samples of Revit 2023 and 2024).

  • Time: 0.99 to 1.03 times the base on all 23 files. The office as built 33.15 s to 33.22 s, at permit 27.78 s to 28.36 s; Snowdon Towers Architectural, which gains 1,019 meshes, 34.0 s to 35.1 s (1.03); rac_advanced 2023 and 2024 1.02 and 0.99.
  • Peak memory: 1.00 times the base on 22 files (the office 1,432 to 1,438 MiB and 1,545 to 1,550, rac_basic 2023 876 to 876). Snowdon Architectural falls from 2,087 to 1,780 MiB (0.85), which I did not look for and do not explain; the other Snowdon files read 0.98 to 1.00.

So the change costs nothing measurable beyond the 0.18.0 figures, and the cost bullet of the next release notes needs no new line for it. Approving the head 1ab30c91 once the bot's checks allow.

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

Labels

None yet

Projects

None yet

1 participant