Skip to content

fix(ifc): a wall's mesh quantities are refused for a decode failure that can leave part of the wall out, as a beam's and a column's are (#1947) - #2020

Merged
DrunkOnJava merged 3 commits into
mainfrom
fix/1947-wall-mesh-partial
Nov 15, 2026
Merged

DrunkOnJava merged 3 commits into
mainfrom
fix/1947-wall-mesh-partial

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Nov 14, 2026 •

Copy link
Copy Markdown
Owner

Summary

A wall's base quantities are no longer read from a saved mesh that failed to decode in a way that can leave part of the wall out. saved_meshes::attach refuses a beam's or a column's mesh when partial_refusal finds any failed piece, but handed a wall's primitives to wall_mesh_quantities with no check. That function wants one closed piece wound one way, which still passes a mesh whose failed part was a separate solid. The wall now gets its own test, wall_mesh_partial: any diagnostic leaves_partial counts, except a view-resolved instance (VIEW_RESOLVED_INSTANCE_DIAGNOSTIC, now a named constant at its source in native_graphics_traversal). On every measured wall that diagnostic leaves the wall's own solid whole. Bodies, beams and columns keep partial_refusal unchanged. Item 15 of #1947.

Motivation

#1947 item 15: "A wall's quantities taken from a saved mesh that decodes only in part" (src/ifc/saved_meshes.rs).

The first version refused any partial wall mesh. Its samples gate run (43650419532) moved 6 sample exports: 8 parapet walls in each rac_advanced save of 2023 to 2027, and 9 split-face CMU retaining walls on Snowdon Towers Architectural 2024. rvtReview compared their removed NetVolume with Revit's own drawn body, from the local Snowdon IFC4 export and the three.js IFC2X3 export of rac_advanced, read as geometry only, since neither holds a quantity. It was 1.000 on 17 of 17, so that version removed correct values.

probe_2020_wall_mesh_diagnostics (branch research/2020-wall-mesh-diagnostics, Measure 43654866787, 47 models: samples 2023 to 2027 and the BIM4LCA files) names the failure. Of 7,573 walls, 7,406 have a mesh and 49 are partial, all with the one kind view-resolved instance is unsupported. They are exactly those 49 walls (8 × 5 + 9). No BIM4LCA, RE1, Core Interior or Einhoven wall is partial. So the evidence rests on two Autodesk sample projects. On them the diagnostic leaves the wall whole, and any other kind of failure still refuses the mesh.

Changes

  • src/research/native_graphics_traversal.rs: VIEW_RESOLVED_INSTANCE_DIAGNOSTIC, used where the walk raises it.
  • src/ifc/saved_meshes.rs: wall_mesh_partial, and the wall branch uses it.
  • changelog.d/fixed/1947-wall-mesh-partial.md.

Testing

Measure 43656305014 at a1a11c5e against 8529bb01, unfiltered with samples, nordic, r2025 and holdout: ifc.sha256 120 of 120 equal (the six samples the first version moved are back to equal), diagnostics.json 102 of 102, no scorer output different, and same-project gates pass (15 samples held). This is a fail-closed gate for a decode failure no measured wall has: it moves nothing measured, and keeps a future partial mesh of another kind from giving a wall half its quantities.

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

Audit-honesty checklist

  • The fragment says what the evidence rests on (two Autodesk sample projects) and that no measured export changes
  • No emojis, private paths or jargon

Legal and contribution hygiene

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

Breaking changes

None.

… but a view-resolved instance, which leaves the wall's own solid whole (#2020)
@DrunkOnJava DrunkOnJava changed the title fix(ifc): a wall whose saved mesh decoded only in part takes no quantities from it, as a beam and a column take none (#1947) fix(ifc): a wall's mesh quantities are refused for a decode failure that can leave part of the wall out, as a beam's and a column's are (#1947) Nov 15, 2026
@DrunkOnJava
DrunkOnJava merged commit 24583f4 into main Nov 15, 2026
38 checks passed
@DrunkOnJava
DrunkOnJava deleted the fix/1947-wall-mesh-partial branch November 15, 2026 00:33
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