Skip to content

fix(ifc): a column whose saved mesh is a prism of another section than its type's rectangle is drawn from the mesh (#1710) - #1965

Merged
DrunkOnJava merged 1 commit into
mainfrom
fix/1710-column-mesh-sections
Nov 14, 2026
Merged

DrunkOnJava merged 1 commit into
mainfrom
fix/1710-column-mesh-sections

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Nov 14, 2026 •

Copy link
Copy Markdown
Owner

Summary

A column drawn as its type's rectangle is now drawn from its saved mesh where that mesh is a closed vertical prism whose section area differs from the rectangle's by more than 0.1%. This is #1710's point 1: the BIM4LCA housing's 4 chamfered Concrete columns (their rectangle 0.3% and 1.1% over Revit's section) and the 32 Strut:1.5" x 1.5" columns of Autodesk's rme samples of 2024 to 2027, drawn as solid bars where the mesh is a thin-walled section.

Motivation

RE-425 gave these columns the quantities their mesh gives but kept the rectangle as their body, since a resolved profile is never offered the mesh (is_replaceable_box). Where the mesh shows a section the rectangle is not, the mesh is the better body, and #1710 names that as what would close it.

Changes

  • src/ifc/saved_meshes.rs:
    • in the column_rectangles branch, section_not_rectangle compares the mesh's cross_section_area (column_mesh_quantities, RE-424) with the extrusion's rectangle;
    • past COLUMN_SECTION_TOLERANCE (1e-3, relative) the column goes through the same replacement path as a box, its body becomes the mesh, and its quantities come from it there;
    • otherwise, as before, only the quantities.
    • A column so drawn counts as a candidate in the saved-mesh report.
  • A changelog fragment.

Testing

Measure 43543301739, unfiltered against main, with nordic, r2025, samples and holdout. Registered before it runs:

  1. The exports that move are the housing's (concrete and timber, as built and at permit, wherever the 4 chamfered columns are) and the rme_advanced/rme_basic saves of 2024 to 2027. Every other export is byte for byte main's.
  2. On the housing, Qto_ColumnBaseQuantities equal does not fall and different does not rise; the 4 columns' bodies are their meshes (BodySource saved_graphics_mesh).
  3. same-project gates pass: the rme saves of 2024 to 2027 move alike.
  4. Held-out counts: none moves for the worse.

If a column moves that is not one of these, or a gate fails, the tolerance or the rule is narrowed before this leaves draft.

Measured (43543301739):

  • The chamfered columns are on the timber housing files. There, 8 columns are scored from their mesh where main scores 4, all 8 within 0.001 ft and 0.01% of Revit's volume.

  • No quantity or property census line moves, and no held-out model moves. same-project gates passes.

  • The 32 Strut:1.5" x 1.5" columns of the rme samples of 2024 to 2027 are now drawn from their saved meshes. No Revit export of those samples exists, so only the same-project gates hold them: the 2024 to 2027 saves move alike.

  • tools/check-local.sh: no local builds; rustfmt --check passes; CI runs the rest.

Audit-honesty checklist

  • No claim beyond what the run will show.
  • A changelog fragment.
  • No private paths or emojis.

Legal and contribution hygiene

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

Part of #1710.

…n its type's rectangle is drawn from the mesh (#1710)
@DrunkOnJava

Copy link
Copy Markdown
Owner Author

Measure 43543301739, unfiltered against main (2b4f18b) with nordic, r2025, samples and holdout, read against the rows:

  1. Held, with one correction to the registered rows. The housing's chamfered columns are on the timber housing files, not the concrete ones. On both (as built and at permit), mesh_bodies_vs_ifc scores 8 columns drawn from their saved mesh where main scores 4: the 3 Concrete column:PI-2 and the 1 PI-1 this PR draws from their meshes join the 4 already drawn so. All 8 are within 0.001 ft of Revit's body and within 0.01% of its volume (8 8 8 8 8 8, median volume ratio 1.0000). Every quantity and property census total is unchanged: their quantities already came from the mesh (RE-425).
  2. Held. The exports that move are those two files and the rme_advanced and rme_basic saves of 2024 to 2027 (the 32 struts, which no Revit export scores). The other 110 are byte for byte main's.
  3. Held. same-project gates passes on bee13ce: the rme saves of 2024 to 2027 move alike.
  4. Held. No held-out count moves.

@DrunkOnJava
DrunkOnJava marked this pull request as ready for review November 14, 2026 02:28
@DrunkOnJava
DrunkOnJava merged commit 1120e01 into main Nov 14, 2026
65 checks passed
@DrunkOnJava
DrunkOnJava deleted the fix/1710-column-mesh-sections branch November 14, 2026 02:46
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