Skip to content

feat(ifc): a column drawn as its type's rectangle gets the base quantities its saved mesh gives, its body unchanged (#1705) (RE-425) - #1711

Merged
DrunkOnJava merged 3 commits into
mainfrom
feat/1705-box-column-quantities
Nov 11, 2026
Merged

DrunkOnJava merged 3 commits into
mainfrom
feat/1705-box-column-quantities

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Nov 11, 2026 •

Copy link
Copy Markdown
Owner

Summary

The BIM4LCA housing draws 50 of its timber file's 54 columns (and 4 of the concrete file's 7, and 4 of 5 in each terrain file) as the rectangle their type's section gives, and Revit's export writes Length, CrossSectionArea, OuterSurfaceArea and GrossVolume on every one. rvt-rs wrote none of the areas and the volume and 25 of 54 lengths, because neither pass that writes a column's quantities took them: RE-291's box rule takes only a body with no resolved profile (and reads a type's b and h, where these types name their section Width and Depth), and the saved-mesh pass offers a box's mesh only where no profile is resolved. The mesh Revit saved for such a column is now read for its quantities only, as a beam's (RE-423) and a wall's (RE-388) are, and where it is one closed solid of flat faces that is a prism along the vertical (RE-424) the quantities are written, creating Qto_ColumnBaseQuantities where the column holds none. No value a column holds is replaced and no body changes.

On the housing they read equal to Revit's on 52 of the timber file's 54 CrossSectionArea, OuterSurfaceArea and GrossVolume (from 2), on 54 of 54 NetVolume and Length (from 4 and 25), on 7 of 7 of the concrete file's and 5 of 5 of each terrain file's: 526 values on six files, none different. The four columns of the chamfered Concrete column family, whose rectangle is 0.3% and 1.1% over Revit's section, read Revit's section. The offices are byte-identical. Core Interior (107 columns; its Revit export holds no base quantities) and eight Autodesk MEP samples (4 struts each) gain the same, which no Revit export scores.

Closes #1705. The residuals are filed as #1710 (the bodies that stay the rectangle where the section is not one, and the two timber-office lengths).

Motivation

#1705 (the housing's record-box columns), #1203, #1016, #1636; follows RE-424, RE-423, RE-388 and RE-291. The rows were registered on #1636 before the change was written and before its runs were read: #1636 (comment) (the probes' rows) and #1636 (comment) (the probes read, and the change's rows 5 to 10); the results are read against them at #1636 (comment).

Changes

  • src/ifc/saved_meshes.rs: column_rectangles (the columns whose body is the record box with a resolved profile, read for their quantities whether or not their body is drawn from the mesh), column_mesh_quantities (the mesh's flat-face test, then RE-424's column_quantities), and add_column_quantities, which now creates Qto_ColumnBaseQuantities where a column has none and adds NetVolume where absent (a column drawn from a mesh already holds it). The pass adds these columns' ids to what it selects.
  • research/witness/magnetar-2024-core-interior*/observations/rvt-rs.json: Core Interior gains 214 IFCQUANTITYAREA and 214 IFCQUANTITYVOLUME entities (885 to 1,099 and 893 to 1,107), taken from Measure's witness-*.json of the head and replayed with tools/ci/witness-verdict.py to match on all three observations of both artifacts.
  • tools/re/column_added_quantities.py: a body of over 5,000 triangles that nothing was added to is counted, not read (a curved column's axis search took minutes on Snowdon Towers Architectural).
  • Report RE-425, a changelog fragment, the release criteria's W7 entry and a docs/format-reconnaissance.md addendum.

Testing

Measured end to end on the Measure runner (no local builds here; CI builds and tests it; the rule itself is RE-424's, whose pure helpers are unchanged):

  • the probes 42997969828 and the kept housing exports 42999069460: the types name their section Width and Depth; the 50 columns carry ProfileResolved and no SavedMeshRefusal;
  • unfiltered with timing 43000953082 (head c596c666, kept under refs/archive/2026-11-11/cited/c596c666075f, against main at acee45d8, every flag, 126 models each side): 111 exports byte-identical and 15 move, the housing's six files, Core Interior and eight MEP samples; the housing's lines read as registered and none gains a different or a value Revit does not write; the body_sources of the 101 models that report them are identical; same-project gates pass on the head;
  • kept samples 43000956414: tools/re/ifc_element_diff.py finds only IfcColumn changing, only by quantities added: 107 in Core Interior and 4 in each of the eight samples; tools/re/column_added_quantities.py reads Core Interior's 107 as the rule's value of the exported body and the 32 struts as the mesh's, not the bar's;
  • scorer 42999974783 (tools/re/column_quantities_vs_ifc.py on both sides): the four chamfered columns' rule different becomes equal;
  • cost, the part of the registered row 10 that is missed (below): Core Interior's peak memory reads 437 to 536 MiB in the unfiltered run and 453 to 536 MiB in 43005731573, the two timber housing files 1,002 to 1,039 and 993 to 1,030 MiB; the 74 timed files read 0.98 to 1.04 in time (the eight MEP samples that move pooled 0.991) and Core Interior's time reads 1.03 both times.

Row 10 of the registered rows (within the runs' noise, 0.99 to 1.03 in time and memory) is missed for peak memory and the report says so (section 6); the other rows hold as registered.

  • tools/check-local.sh: not run locally (no local builds here); CI builds and tests it
  • Verified end to end on real Revit files: the runs above
  • If this touches the IFC exporter: the runs above, and the report states what it does not touch (bodies, the offices, columns of another body)

Audit-honesty checklist

  • Docs state only what ships (the criteria entry, the addendum, the fragment and the report describe this change)
  • Changelog fragment under changelog.d/added/
  • Limitations in the report: one project with a Revit export (the BIM4LCA housing, Revit 2024), Core Interior and the samples are read, not scored, the bodies stay rectangles, the memory cost on Core Interior
  • No emojis, no private paths

Legal and contribution hygiene

  • Apache-2.0; revit-ifc's CreateBeamColumnBaseQuantities cited by file and function as RE-353 read it (CLEANROOM.md source 5), none of its code copied
  • No Autodesk proprietary source, decompiled internals or NDA'd SDK content

Breaking changes

None: no public type or signature changes; a column's export gains quantities it did not write.

…ities its saved mesh gives, its body unchanged (#1705) (RE-425)
… quantities from the saved mesh, and refreshes Core Interior's witness pins (#1705) (RE-425)
@DrunkOnJava
DrunkOnJava merged commit 5cf9497 into main Nov 11, 2026
36 checks passed
@DrunkOnJava
DrunkOnJava deleted the feat/1705-box-column-quantities branch November 11, 2026 11:07
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