Repository navigation
fix(ifc): --saved-meshes keeps an element's box where part of its saved graphics does not decode (#255) (RE-224) - #995
Merged
Conversation
DrunkOnJava
enabled auto-merge (squash)
October 25, 2026 21:08
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 9425d7d1f6
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
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
--saved-meshesnow keeps an element's record box where part of its saved graphics does not decode, instead of drawing a mesh that is only part of its body. On the BIM4LCA office, 1,294 of the 1,352 bodies then drawn from a saved mesh are Revit's, against 1,294 of 1,709 before (RE-224). The default export is unchanged, and the option stays opt-in, because some partial meshes record nothing.Motivation
RE-78 left
--saved-meshesopt-in because nothing in the file told a complete saved mesh from a partial one.native_saved_scenealready records, per element, what its graphics walk could not read, andsaved_meshes::attachignored all of it. RE-224 sets that record against each mesh's agreement with Revit's export.Changes
src/ifc/saved_meshes.rs:attachkeeps the box where the element's saved graphics carry any diagnostic other than the two that only mark a branch left out for its view semantics.SavedMeshReportgainspartial.src/native_graphics_traversal.rs: those two messages are now constants,NESTED_DETAIL_FILTER_DIAGNOSTICandVIEW_COMPONENT_DIAGNOSTIC, shared withattach.src/bin/rvt_ifc.rs: prints how many bodies kept their box.reports/element-framing/RE-224-saved-mesh-completeness.md, withexamples/probe_re224_saved_mesh_status.rsandtools/re/saved_mesh_status_vs_ifc.py.docs/supported-profile.md,docs/release-1.0-criteria.md(W6) and RE-78. W6 also loses two stale bits: walls are now 482 of 607 (RE-223), and the residuals sit under 0.9.0.changelog.d/fixed/saved-mesh-partial-gate.md.Testing
Unit tests are banned in this repository: do not add them. Show the change working end to end on real files instead.
tools/check-local.sh: CI.main,--saved-meshes): exact meshes stay at 1,294 and 1,376 on the two office files, while the bodies drawn fall from 1,709 to 1,352 and from 1,797 to 1,438. RE1 Electrical gives up 2 exact meshes, stated in the report.Audit-honesty checklist
changelog.d/Legal and contribution hygiene
Breaking changes
SavedMeshReportgains a field. It is#[non_exhaustive], so this is not a break.