Repository navigation
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
Conversation
DrunkOnJava
marked this pull request as ready for review
November 14, 2026 22:46
… but a view-resolved instance, which leaves the wall's own solid whole (#2020)
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 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::attachrefuses a beam's or a column's mesh whenpartial_refusalfinds any failed piece, but handed a wall's primitives towall_mesh_quantitieswith 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 diagnosticleaves_partialcounts, except a view-resolved instance (VIEW_RESOLVED_INSTANCE_DIAGNOSTIC, now a named constant at its source innative_graphics_traversal). On every measured wall that diagnostic leaves the wall's own solid whole. Bodies, beams and columns keeppartial_refusalunchanged. 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_advancedsave of 2023 to 2027, and 9 split-face CMU retaining walls on Snowdon Towers Architectural 2024. rvtReview compared their removedNetVolumewith Revit's own drawn body, from the local Snowdon IFC4 export and the three.js IFC2X3 export ofrac_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(branchresearch/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 kindview-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
a1a11c5eagainst8529bb01, unfiltered with samples, nordic, r2025 and holdout:ifc.sha256120 of 120 equal (the six samples the first version moved are back to equal),diagnostics.json102 of 102, no scorer output different, andsame-project gatespass (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 itAudit-honesty checklist
Legal and contribution hygiene
Breaking changes
None.