Repository navigation
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
Conversation
DrunkOnJava
marked this pull request as ready for review
November 15, 2026 00:16
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
A column drawn from its saved mesh now takes the mesh's height as its
Qto_ColumnBaseQuantities.Lengthwhere theLengthit holds is its record box's height and the mesh is shorter by more than 0.001 ft.add_body_quantitiesgives 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 theLength("ItsLengthstays"). On the Revit 2025 to 2027 saves of Autodesk'srme_advancedandrme_basicsamples, 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. ALengthfrom 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 writtenLengthshorter 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'sLengthfrom 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_scalarson the 2024 and 2025 saves ofrme_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_lengthsruns afterdrop_column_box_quantitiesand replaces aLengthequal to the box's height when the mesh is shorter.changelog.d/fixed/1801-column-length-mesh.md.Testing
8ceef30fagainst8529bb01, unfiltered with samples, nordic, r2025 and holdout.ifc.sha256is 114 of 120 equal, and the six that differ are exactlyrme_advancedandrme_basicon 2025, 2026 and 2027.diagnostics.jsonis 102 of 102 equal. No scorer output differs, since no Revit export covers these files. Every export that has a Revit export is unchanged.IfcColumn'sQto_ColumnBaseQuantities.Lengthby 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.tools/re/bodies_across_saves.pynow holds every column'sLengthto 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 at8f528022with 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_advanced176 of 176 on each of 2025 to 2027,rac_basic3 of 3 andrst_basic30 of 30.same-project gates: pass on8f528022. So the rule moves 786 values (131 × 6) to their 2024 save's, and nothing else.Lengthequal to the mesh's height already or are not drawn from a mesh.Commits after the measured
8ceef30f:9c8926b1changes only the rustdoc ofshorten_column_box_lengths, and8f528022changes onlytools/re/bodies_across_saves.py.tools/check-local.sh: CI runs itAudit-honesty checklist
Legal and contribution hygiene
Breaking changes
None.