Skip to content

fix(ifc): a column drawn from its saved mesh takes the mesh's height as its Length where its record box is taller (#1801) - #2023

Merged
DrunkOnJava merged 3 commits into
mainfrom
fix/1801-column-length-mesh
Nov 15, 2026
Merged

DrunkOnJava merged 3 commits into
mainfrom
fix/1801-column-length-mesh

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Nov 14, 2026 •

Copy link
Copy Markdown
Owner

Summary

A column drawn from its saved mesh now takes the mesh's height as its Qto_ColumnBaseQuantities.Length where the Length it holds is its record box's height and the mesh is shorter by more than 0.001 ft. add_body_quantities gives a column its box's height. The mesh pass drops the box's areas and volumes where the box is not the column's solid (RE-416), but kept the Length ("Its Length stays"). On the Revit 2025 to 2027 saves of Autodesk's rme_advanced and rme_basic samples, the record box of 131 columns per file is 3.5, 7.3, 10.6 or 7.0 m tall around a mesh of 3.405828, 3.5, 3.3 or 3.2 m. That mesh is the same as in each project's 2024 save, whose box is the mesh's height. The round columns among them, whose curved faces the flat-face mesh quantities (RE-424) do not read, wrote the box's height. A Length from anything but the box (a clean pair's, RE-291 and #1203) is left as it is. Closes #1801 if the Measure holds.

Motivation

#1801. tools/re/length_vs_mesh_extent.py (RE-444, Measure 43115049478) found no written Length shorter than the mesh by 2 mm anywhere, and longer only on these 786 columns and on 5 BIM4LCA timber-office elements, which RE-444's frame fix addressed. revit-ifc takes a column's Length from the extrusion its exporter finds (CLEANROOM.md source 5, PropertyUtil.CreateBeamColumnBaseQuantities, read and cited, no code copied), which is the column's solid. The mesh's height is that solid's height.

New evidence for the issue: the probe probe_re233_column_record_scalars on the 2024 and 2025 saves of rme_basic (Measure 43649372164) prints identical native-record scalars for column 573295 (70 of 70 fields). The taller box is in the 2025 element record's box, not in any field of the column's own record.

Changes

  • src/ifc/saved_meshes.rs: each column drawn from its mesh carries the mesh's height. shorten_column_box_lengths runs after drop_column_box_quantities and replaces a Length equal to the box's height when the mesh is shorter.
  • changelog.d/fixed/1801-column-length-mesh.md.

Testing

  • Measure 43650615292, 8ceef30f against 8529bb01, unfiltered with samples, nordic, r2025 and holdout. ifc.sha256 is 114 of 120 equal, and the six that differ are exactly rme_advanced and rme_basic on 2025, 2026 and 2027. diagnostics.json is 102 of 102 equal. No scorer output differs, since no Revit export covers these files. Every export that has a Revit export is unchanged.
  • Values, from the IFCs a keep run kept (43653807326, the 2024 to 2027 samples): each IfcColumn's Qto_ColumnBaseQuantities.Length by Tag against the same project's 2024 save. Both projects are 135 of 135 equal on each of 2025, 2026 and 2027, 810 of 810 in all, with none different and none missing.
  • The gate. tools/re/bodies_across_saves.py now holds every column's Length to the 2024 save by Tag, with at least 135 per rme sample (COLUMN_LENGTH_LEAST), which is Autodesk rme samples, 2025 to 2027 saves: 131 columns in each hold a Length (3.5, 7.3, 10.6 or 7.0 m) that is not their mesh's extent, which the 2024 saves give #1801's "a gate or a scorer". Its run 43654756874 at 8f528022 with the 59 samples: on the base side the six rme saves hold 4 of 135 and differ on 131, and on the head side they hold 135 of 135. The other projects' columns hold on both sides: rac_advanced 176 of 176 on each of 2025 to 2027, rac_basic 3 of 3 and rst_basic 30 of 30. same-project gates: pass on 8f528022. So the rule moves 786 values (131 × 6) to their 2024 save's, and nothing else.
  • Releases. The rule applies to any column drawn from its saved mesh, which is Revit 2023 to 2027. Only the six rme saves move. The others either hold a Length equal to the mesh's height already or are not drawn from a mesh.

Commits after the measured 8ceef30f: 9c8926b1 changes only the rustdoc of shorten_column_box_lengths, and 8f528022 changes only tools/re/bodies_across_saves.py.

  • tools/check-local.sh: CI runs it
  • End to end: Measure

Audit-honesty checklist

  • Changelog fragment says no Revit export covers these files
  • No emojis, private paths or jargon

Legal and contribution hygiene

  • Apache-2.0; revit-ifc read and cited only; no fixtures

Breaking changes

None.

@DrunkOnJava
DrunkOnJava marked this pull request as ready for review November 15, 2026 00:16
@DrunkOnJava
DrunkOnJava merged commit 0cc8c06 into main Nov 15, 2026
75 checks passed
@DrunkOnJava
DrunkOnJava deleted the fix/1801-column-length-mesh branch November 15, 2026 00:28
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