Repository navigation
fix(ifc): the elements CSV lists each element on the storey the IFC writes it in (#1417) - #1421
Merged
Merged
Conversation
…rites it in (#1417) elements_csv took a row's level from the element's own storey_index and listed the pieces the export folds into another element's body. It now reads step_writer::placements and storey_of, as the MCP server and the rooms schedule do (#1412): a part of a stair, railing or curtain wall is on its whole's storey, an element in a room on the room's, an opening on its host's, and a folded piece has no row. rvt-schedule, Python's schedule_csv and the viewer's wasm scheduleCsv share the one function. probe_1417_elements_csv_levels counts the rows that move and are removed against the old rule and checks the CSV it writes against the placements.
DrunkOnJava
marked this pull request as ready for review
November 5, 2026 06:40
…Measure runs 41981541756 and 41981551766 (#1417)
9 of 10 tasks
…olded pieces empty, and says storey and wholes as the export has them (#1417) An owner of separate loops is written with a body of several items, but its extrusion is the first loop alone, so its one row now leaves width, depth and height empty instead of stating the first loop's for the whole element. The wholes whose parts take their storey are a stair's runs, landings and stringers and a curtain wall's members, not railings: fixed in the doc comment, the user guide, docs/mcp.md and the two changelog fragments. The support matrix, the viewer's button title and the user guide say the schedule lists the elements the IFC export writes, on the storey it puts them on. The probe prints the elements with folded pieces and how many stated a size before, and checks their rows' size cells are empty.
DrunkOnJava
enabled auto-merge (squash)
November 5, 2026 07:09
4 of 7 tasks
DrunkOnJava
added a commit
that referenced
this pull request
Nov 5, 2026
…orey the IFC writes it in (#1422) (#1423) ## Summary The viewer's Schedule panel (`build_schedule`), element info panel (`element_info_panel`) and scene tree (`build_scene_graph`) put each element on the storey the IFC export writes it in and list only the elements it writes, as the MCP server (#1412), the rooms schedule and the elements CSV (#1421) do. A part of a stair (a run, landing or stringer) or of a curtain wall is on the storey of its whole, an element in a room on the storey of the room, an opening on the storey of its host, and a further piece of an element of separate loops that the export folds into the owner's body is neither a schedule row nor a tree node. The panel of an element with folded pieces states no size, as its CSV row has no size cells, and a click on any loop of such an element selects the element. ## Motivation #1412 made the writer's placement decision public (`step_writer::placements`, `storey_of`). The viewer's three scene-graph functions still took a level from the element's own `storey_index` and listed the folded pieces, while the "Download element schedule (CSV)" button in the same viewer gives the written placement (#1417, PR #1421). Refs #1422. ## Changes - `src/ifc/scene_graph.rs`: - `build_schedule` skips an index whose placement is `Folded` and takes the row's storey, and so its sort key, from `storey_of(&placements(model), idx)`. - `element_info_panel` takes `storey_name`, `storey_elevation_feet` and `storey` from `storey_of`, and leaves a folded piece out of `hosted`. For an element with folded pieces (`model.body_pieces`, a piece `Placement::Folded`, #1421's condition) it leaves out the size rows and the Profile row, and does not list `extents` as missing. A folded piece is still drawn by the glTF export, so a click in the 3-D view can pick it: its panel is the one of the element that owns it. The panel has a new `entity_index`, additive, the index of the element it describes. - `build_scene_graph` buckets every element by `storey_of`, not by its own `storey_index`, and gives a folded piece no node. This is the same defect as the panels (the tree groups elements by storey), so it is in this PR. A door or window is nested under its host only where the host is a written element on the same storey; otherwise it is a node of its own storey, as is one of two elements that host each other (before, an element whose host was not a building element was left out of the tree). - `viewer/src/main.ts`: a click on a folded piece selects the element that owns it (the pick maps it locally, and the panel's `entity_index` resyncs the selection if it differs): its tree row, its GlobalId, and a highlight and zoom over the element and all its pieces (`IfcModel::body_pieces`). The category highlight and the storey and category framing cover the pieces of the elements they reach. The category list counts the elements the tree lists, so `IfcCovering` reads as the schedule and tree do. A part of several wholes sits under the first, as `aggregate_wholes` has it. `model.body_pieces` lists the pieces of every owner, but the export folds a piece only where the owner's body and the piece's are both plain (`fold_body_pieces`); a piece with a body of its own stays an element with its own tree row. So `writtenElementOf` and `bodyPiecesOf` take the elements the scene graph lists as the written ones (a `Set` of its entity indices, reset where `sceneGraph` is): a listed index is its own element and a listed piece is not one of its owner's, with no fold rule copied into TypeScript (6881cb5, after the measured code head a8785bb). - Docs: `docs/viewer-api.md`, `docs/viewer-build-pipeline.md`, `docs/user-guide.md`, `docs/status.md` and the doc of `buildSchedule` in `rvt-wasm/src/lib.rs`: what the storey is, what the tree and the schedule list, the panel's `entity_index` and size rows. `changelog.d/fixed/1422-viewer-panels-written-placement.md`. - `probes/examples/probe_1422_viewer_panel_levels.rs`: builds the model the viewer's wasm binding builds (`ExportOptions::default()`), reproduces main's rules inline, and counts against what the three functions return now: the schedule rows removed, the elements whose storey moves in the schedule, the tree and a sample of panels (all that move up to 2000, up to 300 folded pieces, up to 300 elements with folded pieces, an even spread of 300), by IFC type and by why; it checks the schedule rows and the tree nodes are exactly the written elements on the placements' storey, in level-elevation order, every sampled panel's storey, `entity_index` and size rows, and counts the panels whose size rows are left out. Its checks derive from `placements`, so they prove the plumbing; the independent evidence for the decision is the MCP scorer reading the written IFC (`consistency element storeys`, 0 differ on 53 models, run 41977947391). - Not touched: `src/ifc/schedule_csv.rs` (#1421); `exported.by_ifc_type` and `building_elements` in the diagnostics still count the folded pieces (#1424), so the Schedule panel's total can read 47 below the diagnostics' on the office until that lands. ## Testing Unit tests are banned: none added. Proof is the probe and Measure. The viewer's browser tests run in CI as part of `CI passed`. Measured at code head a8785bb (the head the runs were dispatched on). Two commits came after it: a merge of main 182ed21, which holds #1421, with edits to the changelog fragments only, and 6881cb5, which changes `viewer/src/main.ts` only (below). The Rust, the IFC identity run and the probe figures are those of a8785bb: - Probe, Measure run 41986216576 (`base=none`, `scorers=none`, `nordic=true`, `r2025=true`; the office as built and at permit, Einhoven, `r2025-13*` to `r2025-17*`): all 8 models pass all 10 checks, `panel-entity-index` and `panel-extents` included. Einhoven: 37 elements, nothing moved or removed (a null result). Office as built: schedule 13,021 to 12,974 rows, 47 `IfcCovering` removed; 599 move (57 none to a storey, 542 storey to storey: `IfcMember` 542, `IfcStairFlight` 35, `IfcSlab` 22, all parts of a whole); the tree and the panels move the same 599; the tree's `Unassigned` storey goes from 60 to 3; the panels of 19 of 19 elements with folded pieces have their size rows left out. At permit: 13,067 to 13,020, the same moves, `Unassigned` 59 to 2, size rows left out on 20 of 20. `r2025-13` to `r2025-15`: 3 move (none to a storey), `Unassigned` 3 to 0; `r2025-16` and `r2025-17`: 1 moves, `Unassigned` 1 to 0. Einhoven and the Revit 2025 models have no element with folded pieces (0 of 0), so they are a null result on the size rows. The moved counts are the same as in run 41983448919 at 32f8a3e, read from both runs' `probe.txt`. - The IFC is unchanged: Measure run 41986242000 (head a8785bb against main b510ff3, `base=main`, `scorers=none`): `ifc.sha256` equal on 8 of 8 models. These figures cover the Rust side: what the three functions return and the panel's `entity_index` and extents. The probe did not count elements that host each other, so that path is not known to be exercised. Not measured: the viewer's TypeScript (the click selecting the written element and the resync to `entity_index`, the highlight and zoom over the pieces, the category counts, the part under the first whole) in a real browser, since no browser test exercises the fold path (Einhoven has no folded piece); the held-out models and Autodesk's samples; 2024 Core Interior and RE1; the viewer's saved-mesh model beyond what the probe builds. The viewer's Playwright tests (CI) cover the Einhoven wall panel's storey jump target, the schedule's group counts adding up to its total, the CSV header and the journey test on the reference models; this PR's CI run is their first run on it. #1422's done-when: both panels read `placements` and `storey_of` and leave folded pieces out (done); `docs/viewer-api.md` says what the level is (done); the office and Einhoven are checked, but by the probe, which builds the viewer's model and calls the functions the wasm binding calls, not in a browser, and the Playwright pins have not run on this head yet. So this is `Refs`, not `Closes`. ## Audit-honesty checklist - [x] README / docs reflect the current state after this PR: `docs/viewer-api.md` says what the storey is, which elements the schedule, tree and panel list, and what the panel's `entity_index` and size rows are. - [x] The user-visible change has a fragment under `changelog.d/fixed/`, not in `CHANGELOG.md`. - [x] A limitation resolved: the viewer's panels disagreed with the CSV, the MCP server and the IFC on levels and rows. Left: a part of several wholes takes the first whole's storey (not measured, #1412); the diagnostics' `by_ifc_type` and `building_elements` count the folded pieces (#1424); the held-out models and Autodesk's samples are not measured. - [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. - [ ] N/A: not a reverse-engineering finding. ## Legal and contribution hygiene - [x] Licensable under Apache-2.0. - [x] No Autodesk proprietary source, decompiled internals or NDA content; the change reads the library's own writer decision. - [x] No new fixtures. ## Breaking changes For users of `rvt::ifc::scene_graph` and the wasm bindings `buildSchedule`, `elementInfoPanel` and `buildSceneGraph`: a schedule row or tree node can be absent that was listed before (a piece the export folds into another element's body), an element's storey can differ from before (a part, an element in a room or an opening has the storey of its whole, room or host), a hosted element can be a node of its own storey where it was nested under a host on another one, and `element_info_panel(idx)` for a folded piece returns the panel of its owner (the owner's `name`, the same ElementId) where it returned the piece's own. The panel of an element with folded pieces has no extent rows. `ElementInfoPanel` gains `entity_index` (additive; `#[serde(default)]`). The public API does not change otherwise. ## Related issues Refs #1422
DrunkOnJava
added a commit
that referenced
this pull request
Nov 5, 2026
…how many pieces were folded (#1424) (#1425) ## Summary `exported.building_elements`, `exported.by_ifc_type` and the other per-element counts of the export diagnostics now count the elements the IFC writes (what `step_writer::placements` says is written), and the new `exported.body_pieces_folded`, by STEP entity type, counts the pieces the writer folds into another element's body (`Placement::Folded`, #823). The figure of `building_elements` and `by_ifc_type` from before is the new one plus it. ## Motivation #1424: the diagnostics counted the folded pieces as elements, which the IFC does not write. Measure run 41977947391 (head 2fc83c4, before this change): 158 `IFCCOVERING` on the BIM4LCA office as built (122 at permit) in `by_ifc_type` where the IFC and Revit's export hold 111 (75), and 13,021 (13,067) `building_elements` where the MCP server lists 12,974 (13,020). The MCP server (#1412), the elements CSV (#1421) and the viewer's panels (#1423) already follow the writer. ## Changes - `src/ifc/mod.rs`: `exported_model_diagnostics`, `model_decisions`, `geometry_gap_skipped_items` and `pset_property_value_count` skip a piece marked `Placement::Folded`; the first tallies it in the new `ExportedModelDiagnostics::body_pieces_folded` (`#[serde(default)]`, appended at the end). - Which counts changed (a folded piece clones its owner's property set, storey, location and extrusion, so it was in each of them): - `exported`: `building_elements`, `by_ifc_type`, `building_elements_with_geometry`, `body_sources`, `bounding_box_bodies`, `bounding_box_spaces`, the four refusal maps, `resolved_outline_spaces`, `approximate_outline_spaces`. On the office as built `body_sources` summed to exactly 13,021 = `building_elements` (run 41977947391), so leaving the pieces in either would break that identity, and in `building_elements_with_geometry` it would break `geometry_element_fraction`. - The `skipped` geometry-gap items (`unsupported_geometry_*`, `floor_boundary_annotation_only`, `opening_index_without_host_geometry`) and the decisions made with them: a gap of an owner was counted once more for each piece, and a piece's `Ceiling...:2` name was in `sample_names`. - `decoded.parameter_value_count`: it counted the `Pset_` values of the sets `add_piece_sets` clones onto a piece, none of which `write_step` emits. Measured in run 41989882391: 54,952 to 54,764 as built and 55,145 to 54,957 at permit (188 fewer on each file, 4 for each of the 47 pieces), equal to the `Pset_` values in the IFC file. - The decisions of `--export-decisions` follow the counts they total. - Derived, so they move with `building_elements`: `source_coverage.exported_element_fraction`, `geometry_element_fraction`, the element terms of `confidence.score` when `unexported_element_records` is non-zero, and the `partial_element_geometry` test. - Unchanged: `storey_bound_elements` (already excluded), `building_elements_carried_by_parts`, `material_count`, `storey_count`, `layered_element_count` (keyed by ElementId), `wall_cut_openings_left_out`, `unit_assignment_count`, `total_entities` (entities: the pieces stay in the model for the glTF and the viewer). - `rvt-mcp`: the descriptions of `open_model` and `get_summary` said the diagnostics' `exported` counts include the pieces; they now say `exported.body_pieces_folded` holds them. `export_gltf` reports the IFC's `building_elements` and `entity_counts` (one count path); its glb also draws the pieces, so its `notes` say how many it draws beyond them when there are any, and its description and the `ExportOut.building_elements` doc say so. The tool descriptions (`open_model`, `get_summary`, `export_gltf`) and the output-schema docs (`ElementCounts.folded_into_bodies`, `ExportOut.building_elements`) change, so `docs/mcp-tools.json` and `docs/mcp-tools.md` need the CI contract sync again (not hand-edited). - `tools/re/mcp_answers_vs_ifc.py`: `building_elements` is `total - openings` and `by_ifc_type` the summary's, exactly; `exported.body_pieces_folded` equals the summary's `folded_into_bodies`; new check "parameter values": `decoded.parameter_value_count` equals the property values in the IFC's `Pset_` sets (first time measured on every model; `tests/parameter_diagnostics.rs` covers six); `--require-folded-field`, which Measure passes on the head side (`MCP_REQUIRE_FOLDED_FIELD` in `measure.yml` and `tools/ci/measure-reference-models.sh`), makes diagnostics without the field a difference. Without it (the base side) the old reconciliation is used. - Docs: `docs/export-diagnostics.md`, `docs/schemas/export-diagnostics.schema.json` (additive), `docs/mcp.md` (its 52 placeholder-named rows are of the office's 12,974 as built, 52 of 13,020 at permit: counted in run 41986491801's dump), a dated note in `reports/element-framing/RE-337-wall-ends-at-the-base-wall.md` where it quotes `parameter_value_count` (54,952 and 55,145), the fragment `changelog.d/fixed/1424-diagnostics-count-written-elements.md` with its Upgrading note, and the follow-up wording of the 1327, 1417 and 1422 fragments. - Read and left unchanged: `viewer/tests/journey.spec.ts` (its schedule-per-type and row-total comparisons hold on a model with folded pieces now that the CSV and the counts both follow the writer), rvt-py and rvt-wasm (no field of these is named), `tests/fixtures/project-counts/` (Core Interior, Einhoven and RE1 have no folded piece, none moves), `tools/ci/validate-real-ifc.py`, the witness payload. - The `actionlint` complaint at `measure.yml:729` (`uses: $/.github/actions/fetch-corpus`) is on a line this PR does not touch. ## Testing - [ ] `tools/check-local.sh`: not run (no local builds in this checkout); CI is the gate. `cargo fmt --all -- --check`, `python3 -m py_compile`, `shellcheck` on the driver and `python3 tools/release/changelog.py check` pass here. - [ ] Measure run 41986491801 (`base=main`, `nordic`, `r2025`, `holdout`; code head f7da923, before the gap-item, `Pset_`, `export_gltf` and scorer changes), read: `ifc.sha256` equal on 53 of 53 models. Diagnostics compared on 35 models: only the two office files moved, each by 47 in `building_elements` (13,021 to 12,974 as built; 13,067 to 13,020 at permit), `building_elements_with_geometry` (12,787 to 12,740; 12,833 to 12,786), `by_ifc_type.IFCCOVERING` (158 to 111; 122 to 75) and the sum of `body_sources` (its key `partition_element_record_bbox`); `body_pieces_folded` is `{"IFCCOVERING": 47}` on both and empty on the other 33. `bounding_box_bodies` (10,723; 10,844), `storey_bound_elements`, `parameter_value_count` (54,952; 55,145) and the `skipped` items are unchanged there. The MCP scorer reads PASS (0 differ) on all 53 models of the head side, with one more comparison in its counts check there than on the base side (the old reconciliation); the diff of every scorer output between the sides is that "compared" integer on 53 files and nothing else. - [x] Final run: Measure run 41989882391 (`base=main` a4044dc, `nordic`, `r2025`, `holdout`; code head 0b1bc04, the later commits change the contract and docs only), read: - `ifc.sha256` identical on all 53 models. - Diagnostics (35 models keep them; the held-out ones keep counts only) move on exactly the two office files. As built: `building_elements` 13,021 to 12,974, `building_elements_with_geometry` 12,787 to 12,740, `by_ifc_type.IFCCOVERING` 158 to 111, `decoded.parameter_value_count` 54,952 to 54,764. At permit: 13,067 to 13,020, 12,833 to 12,786, 122 to 75, 55,145 to 54,957. `body_pieces_folded` is `{"IFCCOVERING": 47}` on both and empty on the other 33. `body_sources` moves by 47 in `partition_element_record_bbox` on both; `skipped`, `storey_bound_elements` and `bounding_box_bodies` do not move. - MCP scorer, head side (`--require-folded-field` set, `MCP_REQUIRE_FOLDED_FIELD` is 1 in the job): every consistency check reads 0 differ and PASS on all 53 models, and the new "parameter values" check (`parameter_value_count` equals the `Pset_` values in the IFC) passes on every model. Base side (main's build, flag unset): that check differs on exactly the two office files, the IFC holding 54,764 and 54,957 values where main's diagnostics count 54,952 and 55,145. So that equality had not been checked on these files before. - Not measured: the held-out models' diagnostics (counts only), Autodesk's samples, the `export_gltf` note on a model with folded pieces, and the exclusion of a box-sourced folded piece (below). - [ ] The IFC is unchanged by design (the writer is untouched); the witness payload is Core Interior's, which has no folded piece. - Unmeasured on every model: the exclusion of a folded piece from `bounding_box_bodies`, the refusal maps and `body_is_record_box`. The office's pieces carry `BodySource` `partition_element_record_bbox` with a resolved plan profile (a sketch ceiling), so they are not box bodies and `bounding_box_bodies` did not move; no measured model has a box-sourced folded piece. ## Audit-honesty checklist - [x] Docs reflect the change; no figure is cited from a run that predates the rule it is evidence for (the before-figures cite run 41977947391, the first-round figures run 41986491801 with its head) - [x] Fragment under `changelog.d/fixed/` - [x] No emojis, no private paths ## Breaking changes A reader of `exported.building_elements` or `by_ifc_type` sees fewer on a file with folded pieces (47 fewer `IFCCOVERING` on each office file); add `exported.body_pieces_folded` to get those two figures from before. `body_sources`, the geometry-gap `skipped` items and `decoded.parameter_value_count` change likewise and are not recoverable from it. The new field is additive (`serde(default)`, absent in older sidecars). ## Related issues Closes #1424
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The elements CSV (
rvt-schedule, Python'sschedule_csv(), the viewer's "Download element schedule (CSV)") lists the elements the IFC export writes, each on the storey it puts it on. A part of a stair (a run, landing or stringer) or of a curtain wall has the storey of its whole, an element in a room the storey of the room, an opening the storey of its host, and a further piece of an element of separate loops that the export folds into the owner's body is not a row. An element with folded pieces is one row with empty width, depth and height cells, since its body has several items and its extrusion is the first loop alone.Motivation
#1412 made the writer's placement decision public (
step_writer::placements,storey_of) and moved the MCP server, the diagnostics'storey_bound_elementsand the rooms schedule onto it, and leftelements_csvon the element's ownstorey_index, listing the folded pieces. On the BIM4LCA office the MCP server's levels disagreed with the IFC's on 599 rows of each file (542 curtain-wall members) and its lists held 47IfcCoveringrows the export does not write (#1412); the CSV had the same two disagreements.Changes
src/ifc/schedule_csv.rs:elements_csvtakes each row'slevelandlevel_elevation_*fromstorey_ofoverplacements(model)and leaves out an element whose placement isFolded. An element with at least one folded piece (model.body_piecesfor it, a piecePlacement::Foldedinplacements) leaves its width, depth and height cells empty: its extrusion is the first loop, not the body the writer emits.rooms_csvalready readplacements. No column changes.src/bin/rvt_schedule.rs,rvt-py/src/lib.rs(schedule_csv) andrvt-wasm/src/lib.rs(scheduleCsv, which the viewer's "Download element schedule (CSV)" button calls,viewer/src/main.ts).examples/basics_export.rsis a fourth consumer, and CI runs it.body_piecesis serialised with the model, so the wasm path folds what the CLI folds.docs/user-guide.md(what thelevelcolumn is, which rows there are, the size cells of an element with folded pieces),docs/python.md,python/rvt/__init__.pyi,docs/viewer-api.md,docs/evidence.md,docs/support-matrix.json(csv-schedules), the viewer's button title (viewer/index.html), and the doc comments of the callers.docs/mcp.mdand the changelog fragment of fix(mcp): an element's level and the element lists are the ones the IFC export writes (#1327) #1412 (1327-mcp-written-placement.md) said a railing is a part of a stair; the wholes are stairs and curtain walls (AGGREGATE_WHOLE_CLASSES), railings stay standalone. No schema indocs/schemasdescribes the CSV: the user guide's column table is its contract, andtests/rvt_schedule_cli.rsenforces its header.probes/examples/probe_1417_elements_csv_levels.rs: counts, for one model, the rows the old rule would write against the rows written now, the rows whose level moves (by IFC type and by why) and the rows removed (by IFC type), the elements with folded pieces and how many stated a size before, checks the CSV it gets (header, cells, count, level-elevation order, every row's ElementId, IFC type and level against the placements, and the three size cells of every element with folded pieces being empty), and says whether the modelrvt-ifcwrites with no switch has the same written elements and storeys as the schedule's model.changelog.d/fixed/1417-elements-csv-written-placement.md.Testing
Unit tests are banned: none added. Proof is the probe and Measure, both on code head
38ddc579. The commit after it changes only the changelog fragment.Probe: Measure run 41983667731 (
--ref main -f ref=38ddc579,base=none,scorers=none, nordic and r2025 on,-f probe=probe_1417_elements_csv_levels -f probe_scorer=-). All 8 models pass the probe's six checks (header, cells, count, level-elevation order, every row's ElementId, IFC type and level against the placements, and the three size cells of every element with folded pieces being empty), and on all 8 the modelrvt-ifcwrites has the same written elements and storeys as the schedule's model (rvt-ifc default written N differing 0).IfcCoveringIfcMember, 35IfcStairFlight, 22IfcSlab; 542 storey to storey, 57 none to a storey, 0 storey to none; all parts of a wholeIfcCoveringtests/rvt_schedule_cli.rspins hold)IfcMember, 1IfcStairFlightIfcStairFlightOn the office the 47 folded pieces of each file belong to 19 ceilings as built and 20 at permit, and the row of each of those ceilings has empty width, depth and height. The office's 12,974 and 13,020 rows equal the element rows the MCP server's consistency check counted on those files in run 41977947391 (#1412). All six models of the viewer's journey test (Einhoven, Core Interior, RE1 x4) have 0 folded pieces (the same run), so
tests/journey.spec.tsholds.The IFC does not move: Measure run 41983679071 (
--ref main -f ref=38ddc579,base=mainat40b86b80,scorers=none, nordic and r2025 on): the sameifc.sha256on 34 of 34 models, none unpaired.What the evidence does and does not show
placementsitself, so it proves the plumbing. The independent evidence that the placements match the written file is the MCP scorer'sconsistency element storeys, which reads the written IFC: 0 differ on all 53 models in run 41977947391, plus the byte-identical IFC above.rvt-ifc --saved-meshesand--family-extrusions, and the viewer's saved-mesh path, were not measured for folding.Audit-honesty checklist
docs/user-guide.mdsays what the level column is, which rows there are and why an element with folded pieces has empty size cells; the support matrix and the viewer's button title say the elements the IFC export writes; no feature this PR does not ship.changelog.d/fixed/, not inCHANGELOG.md.build_scheduleinsrc/ifc/scene_graph.rs,element_info_panel) still read the element's ownstorey_index(Viewer: the Schedule panel and the info panel take each element's level from the writer's placement (#1417 follow-up) #1422, owned by another lane); a part of several wholes takes the first whole's storey (not measured, fix(mcp): an element's level and the element lists are the ones the IFC export writes (#1327) #1412); the held-out models and Autodesk's samples are not measured.Legal and contribution hygiene
Breaking changes
For users of the elements CSV (
rvt-schedule,schedule_csv(), the viewer's download): a row can be absent that was listed before (a piece the export folds into another element's body: 47 on each office file), an element with folded pieces has empty width, depth and height cells where it stated its first loop's, a row'slevelandlevel_elevation_*can differ from before (a part, an element in a room or an opening has the storey of its whole, room or host), and rows are still in level-elevation order, so a row whose level moves moves in the file. The columns, their order and their names do not change. Thervtcrate's public API does not change.Related issues
Closes #1417
Follow-ups: #1422 (the viewer's Schedule panel and info panel, owned by another lane) and #1424 (the diagnostics' count of folded pieces).