Skip to content

feat(ifc)!: every element that would be a box in a Revit 2023 to 2027 file is drawn from the mesh Revit saved for it by default (#1191) - #1610

Merged
DrunkOnJava merged 7 commits into
mainfrom
feat/1191-saved-meshes-default
Nov 9, 2026
Merged

DrunkOnJava merged 7 commits into
mainfrom
feat/1191-saved-meshes-default

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Nov 9, 2026 •

Copy link
Copy Markdown
Owner

Summary

Every element of a Revit 2023 to 2027 file that would be a bounding box is drawn from the mesh Revit saved for it by default, where all of the mesh decodes: in rvt-ifc, rvt-gltf, Python, the MCP server and the viewer. Doors and windows alone were until now, and every other family (furniture, fixtures, equipment, MEP devices and the rest) took --saved-meshes. --no-saved-meshes keeps the boxes. A mesh with a face that does not decode keeps its box, as before.

Motivation

#1191 (W6: no body is a bounding box). The maintainer chose this scope on 2026-11-09, through the question tool, over keeping doors and windows alone and over only the classes measured exact ("All classes, whole meshes only"), with the cost below in front of him. The viewer follows only because its memory and load time are measured in Playwright (his 2026-10-30 condition, restated).

What it costs, on one runner, median of 3 alternating runs (tools/ci/measure-timing.sh, Measure run 42614230465: main against the same tree with the default scope All):

file time peak memory
Core Interior 4.23 s to 4.28 s 305 to 305 MiB
BIM4LCA office as built 21.2 s to 24.4 s (+15%) 913 to 1,423 MiB (+56%)
BIM4LCA office at permit 18.3 s to 21.5 s (+17%) 973 to 1,536 MiB (+58%)
RE1 Electrical 1.75 s to 1.94 s 166 to 264 MiB (+59%)
RE1 Architecture 1.25 s to 1.40 s 121 to 160 MiB

The office's IFC grows from 68 to 83 MB: 11,078 of its 11,246 boxed bodies are drawn from their meshes (568,885 triangles against 257,108), and 124 keep their box, their saved graphics not decoding whole (run 42612357300).

Not every mesh is Revit's. Of the bodies scored on 31 models (run 42612357300, mesh_bodies_vs_ifc, "ref on ours": every vertex of Revit's export within 0.001 ft of the mesh), 17 classes are exact. Doors are 675 of 681, sanitary terminals 68 of 94, flow fittings 71 of 89, flow terminals 30 of 35 and walls 14 of 18.

The viewer (Playwright, Chromium on a 4-CPU runner, one open each, viewer tests run 42631322761 at this branch's head): the wasm memory with the meshes on is the boxes' on Einhoven (17 MiB), RE1 Mechanical (68) and Plumbing (54), 16.3 MiB more on Core Interior (308.1 to 324.4, the same as with doors and windows alone on main's run 42629390948), 21.1 MiB more on RE1 Architecture (96.4 to 117.5) and 51.6 MiB more on RE1 Electrical (160.9 to 212.5). The wasm open call takes at most 0.52 s longer (RE1 Electrical), the viewer's load time at most 0.51 s, and the test's wall clock at most 0.89 s (RE1 Architecture); Core Interior is 2.6 s faster with the meshes on, which is the noise of one open each. Far from the 4 GiB a tab holds.

A very large file. None over 1.4 GiB has been measured. The reporter of #1075 sees 10.3 GB for a 438 MB client model at 0.12.0; how much this adds depends on how many boxed elements the file holds, which the counts it posted do not say (they list 1,781 proxies, 431 sanitary terminals and 32 pieces of furniture among 9,958 elements, against the office's 11,246 boxed bodies), so it may be much less than the office's 56%, or more. Their probe_1075_memory_stages takes the default scope, so it measures the new default as it stands; I have asked them to run it on this commit. --no-saved-meshes returns the previous memory, and saved_meshes: "doors_and_windows" (MCP, new SavedMeshChoice::DoorsAndWindows) the previous default.

Changes

  • src/ifc/saved_meshes.rs: default_scope is SavedMeshScope::All on Revit 2023 to 2027; the module's documentation states the decision and the measurements.
  • src/ifc/export_pipeline.rs: SavedMeshChoice::Default documents the new scope, and a new SavedMeshChoice::DoorsAndWindows (at the end of the enum) selects the previous one: Revit 2023 to 2027 only, and --family-extrusions still implies every boxed element.
  • rvt-mcp: saved_meshes takes default (the new default), doors_and_windows (the previous default, now an explicit choice), all (every release) and off; docs/mcp-tools.json, docs/mcp-tools.md and docs/mcp.md follow.
  • rvt-ifc and rvt-gltf: the help of --saved-meshes (now only a change on Revit 2015 to 2022) and --no-saved-meshes (with the cost). The flags are unchanged.
  • Python (rvt-py, python/rvt/__init__.pyi, docs/python.md) and the wasm bindings: the default follows the library's; the wasm warnings text no longer says "door and window".
  • The viewer: the option reads "Draw family instances from saved meshes", with its hint, the loading card's stage and the worker's note; viewer/tests/saved-meshes-measure.spec.ts no longer asserts that only doors and windows are drawn, and its table counts the boxed bodies drawn from meshes.
  • Docs that state the default: README.md, docs/status.md, docs/evidence.md, docs/compatibility.md, docs/supported-profile.md, docs/release-1.0-criteria.md (W6), docs/support-matrix.json, docs/reference-models.md, docs/rooms.md, docs/viewer-api.md and viewer/README.md, with comments in three workflows and tools/re/mesh_bodies_vs_ifc.py.
  • tools/re/bodies_across_saves.py: an IfcBeam drawn from its saved mesh is held with the beams and landings, and the floor for saved_graphics_mesh there is 8 on rac_advanced: the 8 beams RE-328 drew as boxes along their lines are saved meshes now, so the floor for partition_beam_box_along_axis could not hold.
  • tools/re/readers_across_saves.py and tools/ci/check_same_project_projects.py: ROOFS_LEFT_AS_BOXES is ROOFS_NOT_THE_2025_BODY, naming exactly the five roofs a 2026 or 2027 save draws otherwise than the 2025 save does, each as pinned: rac_advanced's 201262 (its record box, as before) and 165755, 167036 and 167158 (their saved meshes, where the 2025 save draws a level block of their sketch outline), and rac_basic's 243274 (its saved mesh against the 2025 save's roof extrusion). A mesh counts only where its box contains the 2025 body's, and the CI step holds the list to those five tags, so it can only shrink. The maintainer chose this through the question tool on 2026-11-09 ("Allow these 4 as meshes"); Revit 2023 to 2025: roofs drawn as their sketch outline's level block are not drawn from their saved meshes, so one project's saves disagree #1612 is the follow-up that takes the three gables off the list. docs/maintaining.md and docs/status.md say so.
  • changelog.d/changed/1191-saved-meshes-default.md, which also says that no roof, beam, slab, footing or stair flight mesh is among the bodies scored against Revit's export.

Testing

Unit tests are banned in this repository and none were added.

  • Local, no build: rustfmt --check on the seven Rust files, tools/release/changelog.py check, tools/ci/measured_numbers.py (270 of 288 numbers name a model), tools/ci/api-doc-ids.py, tools/ci/render-mcp-tools.py --check and tools/ci/check_same_project_projects.py.
  • End to end: the unfiltered Measure of this change against main (42647512042: 118 models, the held-out included; 48150fa1 against 495b212c; the Rust sources have not changed since, and the branch is rebased onto 6533e8f2 as 2692ac44):
    • 50 of the 118 exports move, all of Revit 2023 to 2027: Einhoven, the office as built and at permit and its two terrain files, RE1's four, three Revit 2025 models (the stair rooms), the 2023 to 2027 saves of Autodesk's samples (3, 10, 5, 5 and 5 files) and 10 of the 18 held-out models. The other 68 are byte for byte main's: Core Interior, every Revit 2015 to 2022 file, 21 of the 24 Revit 2025 models, racadv and BIMcollab, and 8 held-out models.
    • Record boxes (box_bodies_vs_ifc): the office as built 10,679 to 183 and at permit 10,799 to 184, its terrain files 20 to 4, RE1 Architecture 52 to 4, Electrical 49 to 2, Mechanical 43 to 0 and Plumbing 60 to 0, and the three stair models 14 to 12. Held-out models, counts only: modelo_bim 14 to 0, the AA house 45 to 42, the Revit 2024 to 2027 house 59 or 60 to 51 and its office 49 to 40.
    • No property or quantity census regresses on any model (psets_vs_ifc, qtos_vs_ifc: equal never falls, different and missing never rise), the IFC4 rules check finds nothing on any of the 93 exports that keep it, and the schema scorer moves only by its count of swept solids that carry a Position.
    • Spaces: both terrain files' family-instance spaces go from 7 to 9 of 9 within 0.1% of Revit's area and 0.01 ft of its outline (space_profiles_vs_ifc).
    • Walls: only the office at permit moves. 3 fewer walls are drawn in layers in the GLB (519 to 516), their body now being their saved mesh; two walls' plan extents change and keep Revit's base and top; and the wall ends within 0.1 ft of Revit's go from 1,008 to 1,010.
    • Stairs, mixed: in three Revit 2025 models (r2025-13 to 15) one stair body each was a record box 13.12 ft tall (36.07 to 40.05 ft3 against Revit's 8.71 to 9.30) and is now a saved mesh of 8.00 to 8.49 ft3, 5.35 to 5.92 ft tall against Revit's 7.52 to 8.66: it stops short of the stair's top, and its saved graphics report nothing missing. Both bodies differ from Revit's; the farthest Revit vertex from the rvt-rs surface goes from 2.96 to 3.53 ft to 2.56 to 2.75 ft.
    • Same-project gates: success on 48150fa1 (15 samples held to their earlier saves, and the Areas). The 8 beams are held to the 2024 save as saved meshes (42 compared: IfcBeam 37, IfcSlab 5), and the five named roofs are exactly those that differ (4 of 4 on each of rac_advanced's 2026 and 2027 saves, 1 of 1 on rac_basic's). The same scripts fail main's exports (the beams' floor, the roofs: 1 of 4), so the gate sees the default.
  • This head 2692ac44: the gates again (42656259668, the 2024 to 2027 samples), and a Measure with fix(ifc): a wall's edited elevation profile is cut in its body, and its openings are the pockets of the profile against its convex hull, as Revit's export writes them (#1607) (RE-380) #1608 merged under it (42648872950: the office and the 2024 samples against main at 04f21f71), which shows the same wall movement and none of fix(ifc): a wall's edited elevation profile is cut in its body, and its openings are the pockets of the profile against its convex hull, as Revit's export writes them (#1607) (RE-380) #1608's openings lost (the office's extras still 0 of Revit's 220, 158 paired; the terrain opening pair 1 of 1).
  • The viewer's measurement on this branch (viewer tests run 42631322761, success) and the suite (full CI green).
  • The witness verdicts replay: CI's Corpus health and IfcOpenShell jobs pass, so Core Interior's observations do not move.

Audit-honesty checklist

  • README and docs state the new default and its cost; the claims about which classes are exact name their run and the classes that are not.
  • The changelog entry names the opt-out in each interface.
  • W6: draw family instances from their saved meshes by default (decode the remaining saved-graphics faces) #1191's done-when is not met by this change: its third item, "a class whose meshes are not yet exact stays opt-in", is superseded by the maintainer's decision above, and its first, the faces the saved graphics use decoding, is still open (124 of the office's boxes). The issue stays open.
  • The classes whose meshes no model scores against Revit's export (roofs, beams, slabs, footings, stair flights) are named in the changelog entry, in docs/status.md and in the gate's roof list.

Legal and contribution hygiene

  • Licensable under Apache-2.0; no Autodesk source; no fixtures.

Breaking changes

  • The IFC, glTF and viewer bodies of every Revit 2023 to 2027 file with family instances other than doors and windows: a box is replaced by Revit's mesh where it decodes whole. Element counts, GlobalIds, placements and properties do not change.
  • SavedMeshChoice::Default and default_scope mean every boxed element on Revit 2023 to 2027, not doors and windows; SavedMeshChoice::DoorsAndWindows is new, at the end of the enum.
  • MCP saved_meshes: the default is default; doors_and_windows is now the previous default as an explicit choice.
  • The viewer's option and its loading stage are renamed.

Related issues

Refs #1191 (it stays open for the 124 undecoded boxes and the four inexact classes). Follow-up: #1612.

@DrunkOnJava
DrunkOnJava marked this pull request as ready for review November 9, 2026 14:13
@DrunkOnJava DrunkOnJava mentioned this pull request Nov 9, 2026
3 tasks done
DrunkOnJava added a commit that referenced this pull request Nov 9, 2026
## Summary

Release 0.17.0. Everything merged since 0.16.1 (29 pull requests, `main`
at 52282ea): Revit 2015 to 2023 curtain walls, curtain parts and steel
beam I sections, duct and port reads of Revit 2015 to 2027, walls'
`Height` on 2015 to 2023, room outlines from a stored solid's edges, two
wall rules on Revit 2024 (a stub cut whole; a profile-edited wall's top
and `Height`), no `ObjectType` on Revit 2026 and 2027 saves, and two
export claims made conditional (#1598). The saved-mesh default for every
class (#1610) and the wall profile pockets (#1608) are not in it; they
go in the next release.

## Changes

- Version 0.16.1 -> 0.17.0 in:
  - Cargo.toml;
  - rvt-py/Cargo.toml and its `=` pin;
  - rvt-mcp/Cargo.toml and its `=` pin;
  - rvt-wasm/Cargo.toml;
  - tools/stream_evidence/Cargo.toml's pin;
  - viewer/package.json;
  - CITATION.cff (version and date);
  - Cargo.lock and fuzz/Cargo.lock.
- `python3 tools/release/changelog.py assemble`: 17 fragments go into
`[0.17.0]`, with an introduction, what is not measured, and "Upgrading
from 0.16".
- README: the latest release and the "Upgrading from 0.16" and "after
0.17.0" fragments sentence.
- The Core Interior witness observations and verdicts, and the synthetic
fixtures, from this pull request's CI run (to be pushed).

## Testing

- `python3 tools/ci/release_preflight.py check --event workflow_dispatch
--ref-type branch --ref-name release/v0.17.0 --sha HEAD`: ok, version
0.17.0.
- `python3 tools/release/changelog.py check`: ok.
- The release's baseline Measure, `main` at 52282ea against v0.16.1
with every flag and the held-out models: run
[42632958286](https://github.com/DrunkOnJava/rvt-rs/actions/runs/42632958286)
(its result goes into the changelog before this is merged).
- The dry run RELEASE.md step 7 asks for, `publish.yml` dispatched on
this branch (to be run, and linked here).

Unit tests: N/A.

## Audit-honesty checklist

- [x] Each entry keeps its caveats; the introduction lists what is not
measured.
- [x] No emojis, private paths or PII.

## Legal and contribution hygiene

- [x] Apache-2.0. No Autodesk source, internals or NDA material.

## Breaking changes

The API changes of #1524 and #1598 and the `ObjectType` change of #1601,
listed under "Upgrading from 0.16".
@DrunkOnJava
DrunkOnJava force-pushed the feat/1191-saved-meshes-default branch from efc7ce3 to 48150fa Compare November 9, 2026 15:43
… file is drawn from the mesh Revit saved for it by default (#1191)
…ult: Einhoven keeps no box and the office no family-instance space as one (#1191)
…his branch's head: no open more than 0.5 s slower (#1191)
…n-call time and Architecture's 21 MiB exactly, and names the opt-out in the library, the wasm binding and the viewer (#1191)
…d's 8 beams are held as saved meshes, and four roofs the 2025 save draws otherwise are named, as Griffin approved on 2026-11-09 (#1191)
…ab, footing or stair flight mesh is scored against a Revit export, and the roof list's comment names #1612 (#1191)
@DrunkOnJava
DrunkOnJava merged commit cbeba4c into main Nov 9, 2026
48 checks passed
@DrunkOnJava
DrunkOnJava deleted the feat/1191-saved-meshes-default branch November 9, 2026 17:13
DrunkOnJava added a commit that referenced this pull request Nov 9, 2026
…pe name as Reference in both sets, as Revit's export writes it (#1193) (RE-382) (#1617)

## Summary

The opening of a host's own geometry (a floor's sketch void, and the
opening a face-hosted door or window cuts in its host, RE-237) now
carries its host's type name as
`Pset_EnvironmentalImpactIndicators.Reference` as well as
`Pset_OpeningElementCommon.Reference`, which is how Revit's export
writes every opening.

## Motivation

#1193 lists the opening `Reference` among W7's remaining values. The
property census of the BIM4LCA office with Revit's set placement on
(Measure
[42656294752](https://github.com/DrunkOnJava/rvt-rs/actions/runs/42656294752),
`main` at `060e8f0a`) has `Pset_EnvironmentalImpactIndicators.Reference`
missing on 37 values as built (`VP-1` x36, `YP-1` x1) and 36 at building
permit (the census holds one value per key, and the roof's 4 hatch
openings share one), and the unfilled-openings scorer shows them: every
opening Revit's export holds in a floor or roof (the floor voids, 36 and
35, and the roof's hatch openings) has both sets in Revit's export and
one in rvt-rs's. Snowdon Towers (Revit's IFC4 export, local only) has 12
more on its floors, each the host's type name, which rvt-rs's
`Pset_OpeningElementCommon.Reference` already equals. RE-237 measured
the Common set only; the wall's cut openings (RE-321, RE-338) and the
profile openings (RE-381) already carry both. The report is RE-382.

## Changes

- `src/ifc/step_writer.rs`: in the loop of a host's own openings
(`VoidOpening`, `HostedCutOpening`), the host's `Reference` in both
sets, as the loops of a wall's cut openings and of its profile openings
write it.
- `src/ifc/mod.rs`: `pset_property_value_count` holds both values of
each such opening, so `decoded.parameter_value_count` is still the
file's `Pset_` values.
- `changelog.d/added/382-floor-void-opening-environmental-reference.md`,
the report RE-382, and the two Core Interior witness observations and
the `IFCPROPERTYSET` pin of `2024-core-interior*.json`, which count the
62 sets the export gains there.

## Testing

Unit tests are banned in this repository; nothing here is a pure helper.
The change is shown end to end on real files:

- [ ] `full / CI passed` on the final head
- [x] Verified end to end on real Revit files: the unfiltered Measure
with every flag and `holdout=true`, run
[42657527737](https://github.com/DrunkOnJava/rvt-rs/actions/runs/42657527737)
(head `72160545` against `main` at `8b8892df`, before #1610). 13 of 118
exports moved, by property sets only: the office gains 40 sets as built
and 39 at permit and the census's missing values go 1,375 to 1,338 and
1,385 to 1,349 with different still 1 and values Revit does not write
still 1 and 6; Core Interior gains 62, the MEP samples 9 each (2024 to
2027) and Snowdon Towers 12 and 7. No body or other scorer line moves,
and none of the 18 held-out exports does (the held-out set does not
exercise the rule). `same-project gates` passes; it checks bodies and
Areas across saves, which this does not touch. Why 40 sets for 37
values: Measure
[42662314183](https://github.com/DrunkOnJava/rvt-rs/actions/runs/42662314183)
kept the office's own export (the roof's 4 hatch openings share one
key). RE-382 section 3.
- [x] Core Interior's 62 floor voids gain the Environmental set (rvt-rs
writes the sets there as for every other element of Core, whose Revit
export writes none), so both committed rvt-rs witness observations are
the run's `witness-*.json` and both verdicts replay PASS with the
verdict files unchanged; the `IFCPROPERTYSET` pin moves 6,514 to 6,578
(it stood inside its tolerance at the 6,516 measured).

## Audit-honesty checklist

- [x] README / docs reflect the current state after this PR: the report
and the changelog fragment; no capability row changes.
- [x] A user-visible change has its entry as a fragment under
`changelog.d/added/`.
- [x] If a limitation was resolved, the docs are updated: RE-382 section
3 and the changelog fragment.
- [x] If a new limitation was introduced, it is documented in the PR
body and in-code: the rule is measured on the BIM4LCA office's two files
and on Snowdon Towers (Revit 2024), and no export of a later release has
a floor void to check it against (RE-382 section 4).
- [x] Commit messages describe what changed and why
- [x] No emojis in code, docs, or commit messages
- [x] No private paths, personal email addresses, or internal jargon in
committed files
- [x] Reverse-engineering finding: the report RE-382.

## Legal and contribution hygiene

- [x] I agree this work is licensable under Apache-2.0 (see
`CONTRIBUTING.md`)
- [x] This PR contains no Autodesk proprietary source, decompiled
internals, or NDA'd SDK content (see `CLEANROOM.md`). Contributor
declaration: every fact here comes from byte observations of the BIM4LCA
office's files (CC BY-SA 4.0) and Autodesk's Snowdon Towers sample, with
Revit's own IFC4 exports of them. No Autodesk or ODA SDK source,
disassembly, leaked document or NDA material was used, and nothing was
copied or translated from revit-ifc.
- [x] No new test fixtures

## Breaking changes

None.

## Related issues

Refs #1193 (W7), RE-237, RE-381.
DrunkOnJava added a commit that referenced this pull request Nov 9, 2026
…ane's slope as PitchAngle, as Revit's export writes it (#1193) (RE-384) (#1619)

## Summary

A floor drawn along the plane its shape-edited corners lie in (#1384)
now carries that plane's slope as `Pset_SlabCommon.PitchAngle`, which is
what Revit's export writes on the BIM4LCA office's 8 sloped floors. A
level floor keeps RE-238's 0, and a floor whose plane is read but not
drawn gets none.

## Motivation

#1193 lists the sloped slabs' `PitchAngle` among W7's remaining values.
The property census of the office with Revit's set placement on (Measure
[42658128847](https://github.com/DrunkOnJava/rvt-rs/actions/runs/42658128847),
`main` at `060e8f0a`) has `Pset_SlabCommon.PitchAngle` missing on
exactly those 8 slabs (4 `AP-1` base slabs, 4 `AP-3` gutter floors) on
each file, with Revit's values 0.0329 to 0.4196 rad. RE-238 left them
out because rvt-rs drew them level; #1384 has drawn them along their
plane since, and the angle of the largest upward face of rvt-rs's own
body of each, measured on its export of the office (Measure
[42655806838](https://github.com/DrunkOnJava/rvt-rs/actions/runs/42655806838)),
is Revit's value to 2e-7 rad on all 8. The report is RE-384.

## Changes

- `src/ifc/export_content.rs`: `add_shaped_floor_pitch` writes
`PitchAngle` as `atan(hypot(a, b))` of the plane `z = a·x + b·y + c` on
a floor whose `BodySource` says it is drawn from that plane
(`shaped_floor`); `add_slab_pitch` is the one writer of the property,
which `add_level_slab_pitch` now calls with 0.
- `docs/supported-profile.md`, `docs/release-1.0-criteria.md`: the W7
lists name the sloped floors' value.
- `changelog.d/added/384-sloped-floor-pitch-angle.md`, the report
RE-384.

## Testing

Unit tests are banned in this repository; nothing here is a pure helper.
The change is shown end to end on real files:

- [ ] `full / CI passed` on the final head
- [x] Verified end to end on real Revit files: the unfiltered Measure
with every flag and `holdout=true`, run
[42660463442](https://github.com/DrunkOnJava/rvt-rs/actions/runs/42660463442)
(head `dbf00dbc` against `main` at `8b8892df`, before #1610). Two of 118
exports move, the office as built and at permit, each by 8 property
values (`decoded.parameter_value_count`); `Pset_SlabCommon.PitchAngle`
goes from 54 to 62 of 62 equal on both files, the missing values fall by
8 (1,375 to 1,367 and 1,385 to 1,377), different stays 1 and the values
Revit does not write stay 1 and 6. The other 116 exports are
byte-identical, held-out ones and every Autodesk sample included (none
holds a floor drawn along its plane, so the rule is exercised on one
project), and no body or other scorer moves. `same-project gates`
passes; it checks bodies and Areas across saves, which a property does
not move. RE-384 section 3.
- [x] If this touches the IFC exporter: the witness verdicts replay.
Core Interior's export and both witness observations are byte-identical
on both sides of the run, so no observation changes.

## Audit-honesty checklist

- [x] README / docs reflect the current state after this PR: the
supported profile and the 1.0 criteria's W7 list.
- [x] A user-visible change has its entry as a fragment under
`changelog.d/added/`.
- [x] If a limitation was resolved, the docs are updated: RE-384 section
3, the supported profile and the 1.0 criteria's W7 list.
- [x] If a new limitation was introduced, it is documented in the PR
body and in-code: the rule rests on the office's 8 floors (one project);
the sloped floors' `Depth` and `GrossVolume` stay out (RE-384 section
4).
- [x] Commit messages describe what changed and why
- [x] No emojis in code, docs, or commit messages
- [x] No private paths, personal email addresses, or internal jargon in
committed files
- [x] Reverse-engineering finding: the report RE-384.

## Legal and contribution hygiene

- [x] I agree this work is licensable under Apache-2.0 (see
`CONTRIBUTING.md`)
- [x] This PR contains no Autodesk proprietary source, decompiled
internals, or NDA'd SDK content (see `CLEANROOM.md`). Contributor
declaration: every fact here comes from byte observations of the BIM4LCA
office's files (CC BY-SA 4.0) with Revit's own IFC4 exports of them, and
from reading Autodesk's open-source exporter (the slope calculator of
revit-ifc, CLEANROOM.md source 5) for what Revit's export writes. No
Autodesk or ODA SDK source, disassembly, leaked document or NDA material
was used, and nothing was copied or translated from revit-ifc.
- [x] No new test fixtures

## Breaking changes

None.

## Related issues

Refs #1193 (W7), RE-238, #1384.
DrunkOnJava added a commit that referenced this pull request Nov 9, 2026
… IFC and meshes the others on every core (#1616) (#1622)

## Summary

`tools/re/save_pair_bodies.py`, which the census of
`tools/re/readers_across_saves.py` meshes every body of two saves with,
now reads a body Revit saved as a triangle mesh from the IFC and meshes
every other body in one call on all cores. The numbers it compares are
the old ones: the same bodies, world boxes identical to the last bit,
volumes within 9.2e-5 of the old against a tolerance of 1e-3, and no
verdict of any pair changes.

## Motivation

#1616: the `samples-2024-2099` shard of Measure takes 34 to 50 minutes
of its 90 on the saved-mesh default (#1610), where it took 11. With each
body meshed by its own `create_shape` call, a Revit 2026 save of
rac_advanced took 52 of 55 s of the census's meshing, and a profile of
`bodies_across_saves.py` on the 2026 and 2025 saves of rac_basic (59.3
s, with the meshing already on all cores) puts 57.6 s in the census of
`readers_across_saves.py` and 56.1 s of those in IfcOpenShell's
iterator. IfcOpenShell builds an OpenCASCADE face from each triangle of
an `IfcTriangulatedFaceSet` and meshes it again. Timed element by
element (one `create_shape` each, on a Mac carrying other work, 106 s in
all): two sanitary terminals of 163,040 triangles took 22.3 s and 20.3 s
and 23 footings of 2,936 triangles 26.4 s, and of rac_basic's 441 bodies
314 are triangle meshes. The triangles are what the census compares, and
they are in the file.

## Changes

- `tools/re/save_pair_bodies.py`:
- `face_set_mesh` (new): a product whose one `Body` representation holds
one `IfcTriangulatedFaceSet` (no `PnIndex`, a 3D point list, indices in
range) and that has no `HasOpenings` is read as its points through its
`ObjectPlacement` (`ifcopenshell.util.placement.get_local_placement`)
and the unit scale, with the file's own triangles. Anything else returns
`None`.
- `bodies()`: pairs and Tag rules unchanged (a Tag more than one product
carries is still not scored; a product with no Tag is still counted
apart). Face sets are read; the rest is meshed by IfcOpenShell's
iterator on every core, one call, where it was one `create_shape` per
element. A body the iterator does not return did not mesh, as one that
raised did. The volume is the same formula about the world's origin.
- The module docstring says which bodies are read and which are meshed.

## Testing

Unit tests are banned here, and none is added. The old and the new
`bodies()` were run on the kept exports of Measure's samples
(`keep_ifc=true`, Revit 2025 and 2026 saves of each project) and
compared body by body (the harness imports the two `bodies()` and prints
the figures below; the old one is `git show
cbeba4c:tools/re/save_pair_bodies.py`):

| Export | Bodies | Read from the file | Old meshing | New meshing |
Worst volume difference | Worst world box difference |
|---|---:|---:|---:|---:|---:|---:|
| rac_basic 2025 | 441 | 314 | 62.8 s | 0.9 s | 9.2e-5 | 0 |
| rac_basic 2026 | 441 | 314 | 64.5 s | 0.8 s | 9.2e-5 | 0 |
| rst_basic 2025 and 2026 | 453 | not counted | 7.2 s | 0.4 s | 5.8e-11
| 0 |
| rac_advanced 2025 | 5,527 | not counted | 401 s | 34 s | 8.9e-9 | 0 |
| rac_advanced 2026 | 5,527 | not counted | 403 s | 32 s | 8.9e-9 | 0 |
| Core Interior (2024) | 854 | not counted | 51.6 s | 29.7 s | 1.6e-10 |
0 |

The same Tags, the same bodies that did not mesh (none), the same class
and `BodySource` on every body. The seconds are one run each on a Mac
carrying other work (its load average was above 100 for the longer runs,
and several runs went at once), so they are indicative; the gates' own
time on Measure's runners is below. The one volume that moves by more
than 1e-6 is a door of rac_basic 17 m from the world's origin: its
triangles do not share their corners to the last micron, IfcOpenShell
joins those corners and the file's triangles are not joined, so the
volume about the world's origin takes each gap times its distance. That
is 9.2e-5 of the door's volume against the census's tolerance of 1e-3;
no other body is above 7.1e-7.

Verdicts, the census's own comparison (`same()`, world box 3 mm and
volume 0.1%) over every body present in both the 2025 and 2026 saves,
with each implementation's bodies: rac_basic 441 pairs, 440 the same in
both; rst_basic 453, all the same in both; rac_advanced 5,527, 5,523 the
same in both; no verdict differs.

rme_advanced and rme_basic (about 6,600 bodies a save, 94 and 100 MB
exports) were not compared body by body here: the old meshing takes too
long on a loaded Mac. The Measure run below holds them to the same gates
as the base side's.

**Measure.** Run
[42668227629](https://github.com/DrunkOnJava/rvt-rs/actions/runs/42668227629)
(`-f ref=625537fe187a2bf90d8f1730c52aae41db9ee831 -f base=none -f
samples=true -f sample_years="2024 2027" -f
scorers=bodies_across_saves`, from this branch) holds the 2024 to 2027
saves of every sample project to the gates on this head.

- **The verdict.** The `same-project gates` check run on this commit:
pass, 15 samples held to their earlier saves, and the Areas on 4 saves.
- **The text.** The gate of each of the 15 saves (the 2025, 2026 and
2027 saves of `rac_advanced`, `rac_basic`, `rme_advanced`, `rme_basic`
and `rst_basic`) is byte for byte what Measure run
[42647512042](https://github.com/DrunkOnJava/rvt-rs/actions/runs/42647512042)
wrote (the old meshing, #1610's head): 15 of 15, volumes to the six
digits it prints included. That covers the two MEP samples that were not
compared body by body above.
- **The time.** Each sample's `timings.log` (`bodies_across_saves`,
seconds, the two runs on GitHub's runners):

| Save | Old | New |
|---|---:|---:|
| `rac_advanced` 2026 / 2027 | 397 / 395 | 63 / 64 |
| `rac_basic` 2026 / 2027 | 410 / 411 | 13 / 14 |
| `rme_advanced` 2026 / 2027 | 1,125 / 808 | 155 / 139 |
| `rme_basic` 2026 / 2027 | 1,203 / 831 | 150 / 116 |
| `rst_basic` 2026 / 2027 | 59 / 59 | 13 / 14 |
| the 2025 saves (compared with 2024's, no census) | 4 to 75 | 4 to 82 |
| all 15 saves | 5,880 | 933 |

The shard's own time is more than the gates: each sample's schema step
(`schema-validate-rules`, IfcOpenShell's WHERE rules, 112 s on
`rac_advanced` 2026 and 248 s on `rme_advanced` 2026) is the other large
part of an item, so #1616 stays open for it.

- [x] `tools/check-local.sh`: N/A, no Rust or workflow change (a Python
file under `tools/re/` that Measure runs).
- [x] Verified end to end on real Revit files: Autodesk's sample
projects (Revit 2025 and 2026 saves), as above and in the run below.
- [x] No change to the IFC exporter, so no witness refresh.
- [x] Performance change: the timing is that of the gates in the Measure
run below, before and after.

## Audit-honesty checklist

- [x] The pages say what was checked and what was not: the volume of a
mesh whose triangles do not share their corners differs from
IfcOpenShell's by the gaps' contribution (at most 9.2e-5 measured), and
the census's printed volumes can differ in their fifth digit from the
old ones.
- [x] No user-visible change, so no changelog fragment.
- [x] No emojis, private paths or PII.

## Legal and contribution hygiene

- [x] Apache-2.0. No Autodesk proprietary source, decompiled internals
or NDA'd content. The exports are those of Autodesk's sample projects,
fetched by Measure.

## Breaking changes

None.

## Related issues

Refs #1616 (its "done when" is the heaviest job of a `samples=true` run
under about 45 minutes; this PR takes the gates' share, and the schema
step is the rest).
DrunkOnJava added a commit that referenced this pull request Nov 9, 2026
…rawn from its saved mesh on Revit 2023 to 2027 (#1612) (#1623)

## Summary

A roof drawn as the level block of its sketch outline (the outline
extruded over the record box's full height) is drawn from its saved mesh
on Revit 2023 to 2027 too, where the mesh decodes whole, as a roof whose
outline is not recovered already is since #1610. Against Revit's own
exports, the 11 roofs that move and that Revit's export holds are now
within 0.4% of Revit's volume; 8 of them were a block 40% or more too
large. The three gables of `rac_advanced` that the same-project gate
excepted leave `ROOFS_NOT_THE_2025_BODY`.

## Motivation

#1612. `saved_meshes::attach` skipped every body whose outline is
resolved. Revit 2024 and 2025 saves have their roofs' outlines
recovered, so a roof the slope readers do not draw stayed a block there
while the 2026 and 2027 saves of the same project drew it from its mesh.
The record box holds the roof's reference surface, not its slope or
thickness, so the block is not the roof's shape. The issue asked for a
Revit export that holds a roof of this kind; Snowdon Towers (Revit 2024)
and puzzbobb's `20_T_U_Roof` (Revit 2025) are two.

## Changes

- `src/ifc/saved_meshes.rs`: a body whose outline is resolved is a
candidate when it is an `IFCROOF`; every other class keeps its outline
as its body. A body replaced by its mesh loses `ProfileSource`,
`ProfileVertexCount`, `ProfileVoidCount` and `SlabShapeRefusal` and
reads `ProfileResolved` false. A mesh that does not decode whole keeps
its block (RE-224).
- `tools/re/readers_across_saves.py`: `ROOFS_NOT_THE_2025_BODY` without
165755, 167036 and 167158 (the list only shrinks).
`tools/re/bodies_across_saves.py`: `OUTLINE_LEAST` falls by the roofs
that are no outline any more (`rac_advanced` 86 to 82 on 2025 and 82 to
81 on 2026 and 2027, `rac_basic` 13 to 12 on 2025).
`tools/ci/check_same_project_projects.py`, `docs/maintaining.md`.
- RE-389, `docs/status.md`, `docs/supported-profile.md`, the changelog
fragment and #1191's.

## Testing

Unit tests are banned and none is added. The change is shown end to end
(RE-389 section 3 has every figure):

- **Measure
[42670013230](https://github.com/DrunkOnJava/rvt-rs/actions/runs/42670013230)**,
unfiltered with every flag and `holdout=true`, code `245245d2` against
`main` at `cbeba4c7`: 15 of 118 exports move, only roofs from
`partition_element_record_bbox` to `saved_graphics_mesh` (`rac_advanced`
2024 and 2025: 4 each, 2026 and 2027: 1 each; `rac_basic` 2024 and 2025:
1 each; Snowdon Towers Architectural: 10; `20_T_U_Roof`: 1; 7 held-out
exports: 1 each). No property or quantity census moves (0 regressions),
and no model's `slab_shape_refusals` changes.
- **Revit's export, `20_T_U_Roof`:** the block was 37,357 ft3 against
Revit's 1,845.6; the mesh is 1,845.58 ft3 with every vertex of Revit's
body within 4.2e-06 ft.
- **Revit's export, Snowdon Towers Architectural (local only, kept
exports of Measure 42675942905 and 42675946767 scored with
`tools/re`):** of the 10 roofs that move, 3 were equal as blocks and 7
were 40% to 125% above Revit's volume; all 10 are within 0.4% of it,
with their box within 0.01 ft.
- **Held-out (counts only):** 4 of the 7 score the roof's box within
0.01 ft of Revit's; the other 3 (one project's three saves) score it
more than 1 ft off in `saved_meshes_vs_ifc.py` while
`mesh_bodies_vs_ifc.py` puts every vertex within 0.001 ft both ways. I
could not tell from counts which scorer is right; RE-389 section 4 says
what is and is not known.
- **Same-project gates:** the 2026 and 2027 saves of `rac_advanced` pair
5,526 of 5,527 bodies with the 2025 save's (201262 as pinned), so the
three gables now match the 2025 save's meshes within 3 mm and 0.1%. The
first run on `245245d2` failed only on the four outline floors, which
the roofs leaving that group fall short of; on `b1b01f36` the verdict is
a pass (Measure
[42675593198](https://github.com/DrunkOnJava/rvt-rs/actions/runs/42675593198):
15 samples held to their earlier saves, and the Areas on 4 saves).
- [x] `tools/check-local.sh`: no new Rust dependency; fast CI is green
on `b1b01f36`; `tools/release/changelog.py check`,
`tools/ci/measured_numbers.py` and `tools/ci/api-doc-ids.py` pass on the
docs.

## Audit-honesty checklist

- [x] The Autodesk samples' roofs have no Revit export, so
`rac_advanced`'s and `rac_basic`'s are held to each other; the PR and
RE-389 say so, and `docs/status.md` no longer says no roof's mesh is
scored.
- [x] 10 of Snowdon Towers' roofs stay blocks (5% to 133% above Revit's
volume): #1630.
- [x] No emojis, private paths or PII; the Snowdon Towers figures are
percentages and counts, no ids.

## Legal and contribution hygiene

- [x] Apache-2.0. No Autodesk proprietary source, decompiled internals
or NDA'd content; the Snowdon Towers export is read locally and not
committed.

## Breaking changes

A roof on Revit 2023 to 2027 that was a block is a mesh by default;
`rvt-ifc --no-saved-meshes` keeps the block.

## Related issues

Closes #1612. Follow-up: #1630.
DrunkOnJava added a commit that referenced this pull request Nov 9, 2026
…etVolume, as Revit's export writes it (#1046) (RE-387) (#1625)

## Summary

A body rvt-rs draws from the mesh Revit saved for it now gives its
`NetVolume` where every face of the mesh is flat and the mesh closes:
the volume of the mesh, in the base quantity set of its entity, for a
curtain mullion, a curtain panel and a column (an `IfcMember`, an
`IfcPlate` and an `IfcColumn`), where it held none. Revit's export takes
these from the volume of the solid it writes, which the saved mesh is. A
column's `GrossVolume` is not written: Revit's export omits it on 18
columns at permit that nothing tells from the 6 it writes it on.

## Motivation

#1046 keeps in W7 the base quantities Revit computes from its joined
geometry. #1610 draws every element that would be a box from its saved
mesh by default, so rvt-rs now holds each mullion's and panel's solid.
The new scorer `tools/re/mesh_quantities_vs_ifc.py` (Measure
[42669397638](https://github.com/DrunkOnJava/rvt-rs/actions/runs/42669397638),
the office as built and at permit and the 24 Revit 2025 models, `main`
at `cbeba4c7`) compares the mesh's volume with Revit's `NetVolume`: it
is Revit's on all 9,678 mullions as built (9,706 at permit), 260 panels
(269) and 199 columns (289), with 1,883 mullions and 260 panels that
rvt-rs wrote none for. It is not Revit's where a face is curved (4 of 12
proxies, 42 of 44 spaces: a tessellation) and the mesh's surface area is
not `NetSurfaceArea` (Revit leaves out the end faces its joins hide,
4,087 of 9,678 equal). The report is RE-387.

## Changes

- `src/ifc/mesh_volume.rs`: `closed_mesh_volume` (a volume only for
triangles that, their vertices welded, close a surface wound one way)
and `all_faces_flat` (one normal on all the vertices of each face), with
failure-first unit tests of the two pure helpers.
- `src/ifc/saved_meshes.rs`: `add_mesh_volumes` gives `NetVolume` to the
`IfcMember`, `IfcPlate` and `IfcColumn` it draws from a flat-faced
closed mesh and that holds none, in `Qto_MemberBaseQuantities`,
`Qto_PlateBaseQuantities` and `Qto_ColumnBaseQuantities`;
`--no-base-quantities` leaves it out with the rest.
- `tools/re/mesh_quantities_vs_ifc.py`,
`changelog.d/added/387-mesh-net-volume.md`, the report RE-387, and the
W7 lines of `docs/supported-profile.md`, `docs/release-1.0-criteria.md`
and `docs/evidence.md`.

## Testing

The two helpers are pure and have a few failure-first unit tests (an
open mesh, one triangle wound the other way, a repeated triangle, a
vertex that is missing or not finite, no triangle, faces that hold their
own vertices); the change itself is shown end to end on real files:

- [ ] `full / CI passed` on the final head
- [x] Verified end to end on real Revit files: the unfiltered Measure
with every flag and `holdout=true`, run
[42680955225](https://github.com/DrunkOnJava/rvt-rs/actions/runs/42680955225)
(code `a82047ab` against `main` at `5247e7ba`, 118 exports; the commits
after it change only the report and docs). 37 exports move; the other 81
are byte-identical. Office as built: equal 29,761 to 31,904 of 39,754
(`Qto_MemberBaseQuantities.NetVolume` missing 2,208 to 325,
`Qto_PlateBaseQuantities.NetVolume` 260 to 0), at permit 30,037 to
32,196 of 40,006 (the same, plates 269 to 0, and 7 columns); different
stays 1 and the quantities written that Revit's export does not stay 0
on both. The 2 members of each of the three Revit 2025 `Rooms_Stairs`
models are equal (43 to 45 each, different 0). The held-out counts: the
2 members of each of the four Revit 2024 to 2027 pairs and the 8 columns
of one Revit 2023 model are equal, different unchanged, and no quantity
is written that their exports omit. RE1 Architecture's export writes no
base quantities (RE-242), so its 2 panels' volumes are counted apart, 96
to 98 written, which `--no-base-quantities` leaves out. Einhoven and the
25 Autodesk samples have no Revit export and only gain the values. No
body, property, box, mesh or material scorer moves, and of the
diagnostics only `exported.total_entities` does (90,983 to 91,261 as
built; `decoded.parameter_value_count` stays). `same-project gates`
passes on `a82047ab`. RE-387 section 3.
- [x] If this touches the IFC exporter: Core Interior's export is
byte-identical on both sides (it is not among the 37 that move), so no
witness observation changes.

## Audit-honesty checklist

- [x] README / docs reflect the current state after this PR: the report,
and the W7 lists of the supported profile, the 1.0 criteria and the
evidence page.
- [x] A user-visible change has its entry as a fragment under
`changelog.d/added/`.
- [x] If a limitation was resolved, the docs are updated: RE-387 section
3 and the three pages above.
- [x] If a new limitation was introduced, it is documented in the PR
body and in-code: a body with a curved face gets no volume (the test
refuses it, and no member, plate or column of the measured models is
refused, so the refusal is shown on no Revit export), a wall drawn from
a mesh and the ramp flight are not given one here, a column's
`GrossVolume` and a mullion's `NetSurfaceArea` stay out (RE-387 section
4).
- [x] Commit messages describe what changed and why
- [x] No emojis in code, docs, or commit messages
- [x] No private paths, personal email addresses, or internal jargon in
committed files
- [x] Reverse-engineering finding: the report RE-387.

## Legal and contribution hygiene

- [x] I agree this work is licensable under Apache-2.0 (see
`CONTRIBUTING.md`)
- [x] This PR contains no Autodesk proprietary source, decompiled
internals, or NDA'd SDK content (see `CLEANROOM.md`). Contributor
declaration: every fact here comes from byte observations of the BIM4LCA
office's and puzzbobb's files with Revit's own IFC4 exports of them, and
from reading Autodesk's open-source exporter (`NetVolumeCalculator` of
revit-ifc, CLEANROOM.md source 5, as RE-243 cites it) for what Revit's
export writes. No Autodesk or ODA SDK source, disassembly, leaked
document or NDA material was used, and nothing was copied or translated
from revit-ifc.
- [x] No new test fixtures

## Breaking changes

None.

## Related issues

Refs #1046 (W7), #1016, #1191, RE-243, RE-268.
DrunkOnJava pushed a commit that referenced this pull request Nov 10, 2026
…ecode ellipses, curved ruled surfaces and repeated ring points (RE-385) (#1620)

## Summary

After #1610, which draws every boxed element of a Revit 2023 to 2027
file from its saved mesh by default, this offers a family instance drawn
as its turned record box (RE-87) to its saved mesh too, and reads three
things the saved-graphics reader refused: a `GEllipse` profile, a
`RuledSurf` between curves, and a trim ring that repeats its first
point. Snowdon Towers Electrical keeps 18 of its 2,428 elements as
boxes, against 300; 16 of them are pendant drops whose nested
`GInstance` is forbidden the targets 10, which stays refused (RE-385
§3.5). Report: RE-385.

## Motivation

#1191 (W6: no body is a bounding box). Snowdon Towers Electrical (Revit
2025) opened in the viewer read "132 of 2428 drawn from the element's
own data; 2296 are the element's bounding box". With #1610 every boxed
element is offered its saved mesh, and the file still keeps 300 boxes.
`probe_re385_saved_meshes_every_box` lists what each one's saved
graphics report (the 2025 edition; the 2024 one, which CI can fetch,
gives the same but for the two rows marked):

| what keeps the box | elements | here |
|---|---:|---|
| `partition_family_instance_turned_box` is not offered a saved mesh |
130, of which 116 decode whole | offered, as a record box is |
| `unsupported parametric profile curve GEllipse` (pendant domes) | 136
| `Curve::Ellipse` |
| `boundary sample was discarded by triangulation` (conduit end caps) |
28 | a sample on one already used is taken as used |
| `instance target restrictions are unsupported` (art-glass pendant
drops) | 16 | left: what the bits of `m_targets` name is not read |
| `nonlinear ruled profiles need a curvature policy` (hand dryers) | 2 |
each profile stepped by its own curvature |
| `nested detail-family filter requires view semantics` | 131 on 2025, 0
on 2024 | nothing: each also has one of the above |
| `multiple cylinder trim loops unsupported` (Pendant Light - Linear) |
1 | left |

The other box left is a floor, which `attach_scoped` never offers a
saved mesh.

## Changes

- `src/ifc/saved_meshes.rs`: `attach_scoped_with_control` takes
`INSTANCE_TURNED_BODY_SOURCE` among its candidates.
- `src/research/native_parametric_surface.rs`: `Curve::Ellipse`, read
from `GEllipse`'s `m_center`, `m_xVec`, `m_yVec`, `m_xLen`, `m_yLen` and
`m_endParams` (unit, orthogonal axes and positive lengths checked);
`Curve::range`, and `eval` visible in the crate.
- `src/research/native_parametric_mesh.rs`: a revolved ellipse is
stepped as a circle of its larger semi-axis; a ruled component's grid
takes each profile's steps from its own curvature (lines one per foot,
arcs and ellipses the angular step of their radius), with the twist
bound it had.
- `src/research/native_saved_mesh.rs`: `retain_boundary_points` takes a
sample that coincides with one already used as used.
- `probes/examples/probe_re385_saved_meshes_every_box.rs`,
`reports/element-framing/RE-385-saved-meshes-every-box.md`, an addendum
to `docs/format-reconnaissance.md`, `docs/status.md`,
`changelog.d/added/saved-meshes-every-box.md`.

## Testing

Unit tests are banned in this repository: do not add them. Show the
change working end to end on real files instead.

- [ ] `tools/check-local.sh` passes (fmt, clippy, rustdoc, build,
real-file / CLI / contract checks)
- `cargo fmt --all --check` and `cargo clippy --profile ci --workspace
--all-targets -- -D warnings` pass at the branch head. The full
`tools/check-local.sh --corpus` passed before the rebase (300 of 301,
the one failure a missing local 2027 family sample) and has not been
rerun on `cbeba4c7`.
- [x] Verified end to end on real Revit files: the command, the files
(and their licence), and the measured result against Revit's own export
are in the PR body, with the script or probe that reproduces it
- `probe_re385_saved_meshes_every_box` at `main` (`cbeba4c7`) and at
this branch on Snowdon Towers Electrical 2024 (pinned in
`research/autodesk-sample-projects.tsv`) and 2025, Architectural and
Facades 2025, and Core Interior (MIT,
`magnetar-io/revit-test-datasets`): the tables above and in RE-385 §3
and §4.
- `rvt-ifc` at `cbeba4c7` against this branch, default, on 29 projects
of Revit 2023 to 2027: Autodesk's sample projects of 2023 to 2027 and
its five Snowdon Towers 2024 models (pinned), Core Interior, Einhoven,
and, local only, the seven Snowdon Towers 2025 models and the two Golden
Nugget models. No export fails; every file has the same number of
building elements. 8 IFCs are identical (timestamps aside): Einhoven,
Core Interior, `rst_basic` 2023, 2024 and 2027, `rac_advanced` 2026 and
2027, `rst_advanced` 2027. The 21 others draw more bodies from saved
meshes (RE-385 §5).
- Every mesh these changes add fits inside the box it replaces (sorted
local extents, 0.02 ft slack) on the 13 models probed. On Golden Nugget
Architektur 50 meshes are 0.03 to 1.23 ft larger than their box; they
are the same 50 at `cbeba4c7`, none added here.
- **Not** scored against Revit's own export: none of the files whose
bodies change has one held here (Core Interior's does, and its IFC is
unchanged). Fitting the box is a bound, not a match.
- [x] If this touches the IFC exporter: the witness verdicts replay (see
CONTRIBUTING.md) or the changed observations are refreshed in this PR
- Core Interior's IFC is identical to `cbeba4c7`'s, so neither
observation changes.
- [ ] If this is a performance change: reran `tools/bench.sh` and
attached the before / after
- N/A. The cost is the meshing of the elements newly drawn: one run
each, Snowdon Towers Electrical 2024 11.7 s to 13.7 s (+17%), Golden
Nugget Gebäudetechnik 33.1 s to 37.5 s (+13%, 982 more meshes), Core
Interior unchanged; runs of one file differ by up to about 9% (RE-385
§5).

```
cargo run --profile ci -p rvt-probes --example probe_re385_saved_meshes_every_box -- "Snowdon Towers Sample Electrical.rvt"
```

## Audit-honesty checklist

- [x] README / docs reflect the current state after this PR — no claims
of features that are not actually shipped in this PR
- [x] A user-visible change has its entry as a fragment under
`changelog.d/<section>/` (see `changelog.d/README.md`), not in
`CHANGELOG.md`
- [x] If a limitation was resolved, the "Known limitations" / "What
works today" section in the relevant docs is updated
  - `docs/status.md`.
- [x] If a new limitation was introduced, it is documented in the PR
body and in-code
- None introduced. The refused `m_forbiddenTarget.m_targets` 10 is an
existing limitation, now measured: RE-385 §3.5 and §6 count the elements
it keeps as boxes and say what would decide it.
- [x] Commit messages describe WHAT changed and WHY, not "fix things" or
"updates"
- [x] No emojis in code, docs, or commit messages
- [x] No private paths, personal email addresses, or internal jargon in
committed files
- [x] If this is a reverse-engineering finding: a reproducible probe
under `probes/examples/` and a dated addendum to
`docs/format-reconnaissance.md` are included
  - `probes/examples/probe_re385_saved_meshes_every_box.rs`.

## Legal and contribution hygiene

- [x] I agree this work is licensable under Apache-2.0 (see
`CONTRIBUTING.md`)
- [x] This PR contains no Autodesk proprietary source, decompiled
internals, or NDA'd SDK content (see `CLEANROOM.md`)
- Every class and field read is named in the file's own
`Formats/Latest`.
- [x] Any new test fixtures use synthetic values (`testuser`, `111111`,
`FY-20XX`, etc.) and contain no real-world PII
  - No fixtures.

## Breaking changes

- `research::native_parametric_surface::Curve` (`unstable-research`) has
a new variant, `Ellipse`; an exhaustive `match` on it outside the crate
needs an arm for it.
- On Revit 2023 to 2027 the default export draws more bodies from saved
meshes (turned family instances, and the elements the three reader
changes let decode whole). `--no-saved-meshes` keeps the boxes, as
before.

## Screenshots or output samples

`probe_re385_saved_meshes_every_box` on Snowdon Towers Electrical 2025,
at `cbeba4c7` and at this branch:

```
scope all partition_element_record_bbox=170 partition_element_record_join_trimmed=1 partition_family_instance_turned_box=130 saved_graphics_mesh=2127
replaced 2127 fits 2127 larger 0
boxes 300 not offered 1
left unsupported parametric profile curve GEllipse 136
left nested detail-family filter requires view semantics 131
left (status decoded_saved_graphics) 113
left boundary sample was discarded by triangulation 28
left instance target restrictions are unsupported 16
left nonlinear ruled profiles need a curvature policy 2
left multiple cylinder trim loops unsupported 1

scope all partition_element_record_bbox=4 partition_element_record_join_trimmed=1 partition_family_instance_turned_box=14 saved_graphics_mesh=2409
replaced 2409 fits 2409 larger 0
boxes 18 not offered 1
left instance target restrictions are unsupported 16
left multiple cylinder trim loops unsupported 1
```

## Related issues

Refs #1191, #1610
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