Skip to content

fix(ifc): --saved-meshes keeps an element's box where part of its saved graphics does not decode (#255) (RE-224) - #995

Merged
DrunkOnJava merged 8 commits into
mainfrom
feat/saved-mesh-partial-gate
Oct 25, 2026
Merged

DrunkOnJava merged 8 commits into
mainfrom
feat/saved-mesh-partial-gate

Conversation

@DrunkOnJava

Copy link
Copy Markdown
Owner

Summary

--saved-meshes now 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-meshes opt-in because nothing in the file told a complete saved mesh from a partial one. native_saved_scene already records, per element, what its graphics walk could not read, and saved_meshes::attach ignored all of it. RE-224 sets that record against each mesh's agreement with Revit's export.

Changes

  • src/ifc/saved_meshes.rs:
    • attach keeps 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.
    • SavedMeshReport gains partial.
  • src/native_graphics_traversal.rs: those two messages are now constants, NESTED_DETAIL_FILTER_DIAGNOSTIC and VIEW_COMPONENT_DIAGNOSTIC, shared with attach.
  • src/bin/rvt_ifc.rs: prints how many bodies kept their box.
  • reports/element-framing/RE-224-saved-mesh-completeness.md, with examples/probe_re224_saved_mesh_status.rs and tools/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.
  • Verified end to end on real Revit files.
    • Measure 40227454417 (the probe): a decode failure never marks an exact mesh on Core Interior, the office and RE1 Architecture, Mechanical and Plumbing.
    • Measure 40231871182 (this change against 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.
  • N/A: performance (the same pass).

Audit-honesty checklist

  • README / docs reflect the current state after this PR
  • A user-visible change has its entry as a fragment under changelog.d/
  • Resolved limitations updated (W6), and the partial meshes that record nothing stated as still open
  • Commit messages describe what changed and why
  • No emojis in code, docs, or commit messages
  • No private paths, personal email addresses, or internal jargon in committed files
  • Reverse-engineering finding: probe, report and measured counts against Revit's own export

Legal and contribution hygiene

  • Apache-2.0
  • No Autodesk proprietary content
  • No fixtures

Breaking changes

SavedMeshReport gains a field. It is #[non_exhaustive], so this is not a break.

…own record of what it dropped tells a complete saved mesh from a partial one (#255) (RE-224)
…l mesh; profile, 1.0 criteria and RE-78 follow (#255)
@DrunkOnJava
DrunkOnJava enabled auto-merge (squash) October 25, 2026 21:08

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread tools/re/saved_mesh_status_vs_ifc.py Resolved
@DrunkOnJava
DrunkOnJava merged commit 32f12e8 into main Oct 25, 2026
28 checks passed
@DrunkOnJava
DrunkOnJava deleted the feat/saved-mesh-partial-gate branch October 25, 2026 22:33
Repository owner deleted a comment from chatgpt-codex-connector Bot Oct 31, 2026
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