Skip to content

feat(diagnostics): count exported bodies by how they were derived, and the bounding-box stand-ins (#409) - #415

Merged
DrunkOnJava merged 2 commits into
mainfrom
feat/body-source-diagnostics
Sep 27, 2026
Merged

DrunkOnJava merged 2 commits into
mainfrom
feat/body-source-diagnostics

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Sep 27, 2026 •

Copy link
Copy Markdown
Owner

Closes #409. Meets the remaining acceptance item of #93, #94 and #96 (diagnostics say which bodies fall back to bounding boxes).

What changes

  • ExportedModelDiagnostics gains body_sources (count per BodySource) and bounding_box_bodies (bodies that are the record's bounding box with no recovered plan profile). Schema updated in docs/schemas/export-diagnostics.schema.json.
  • rvt-ifc prints, after the type line: N of the bodies are their element record's bounding box: placed and sized, shape not decoded.
  • The viewer's file status adds a Shapes row: M of T drawn from the element's own data; N are the element's bounding box ... (warn level when N > 0).

Measured (rvt-ifc --diagnostics)

file bodies bounding-box stand-ins body sources
Core Interior 970 274 (doors, windows, rooms, rotated plates) record box 530 (256 of them with a recovered profile or section), join-trimmed walls 360, join-cut columns 80
Snowdon Towers 6,081 4,770 record box 4,921, layered wall joins 617, join-trimmed 423, centreline 54, stair runs 34, arcs 24, join-cut 8
RE1 Architecture 85 75 record box 77, join-trimmed 3, layered wall joins 5

Some elements really are boxes (curtain panels, rectangular members), so "shape not decoded" is the claim, not "wrong shape".

Checks

cargo fmt --check, cargo clippy --all-targets --all-features -D warnings, json_schema_contracts and support_matrix with the corpora, cargo test --lib ifc::, tsc --noEmit on the viewer. IFC output is unchanged; both Core Interior witness observations regenerate byte-identical.

Legal and contribution hygiene

  • Apache-2.0; no Autodesk or ODA material.

Note

Low Risk
Additive diagnostics, schema fields, CLI text, and viewer status only; IFC export geometry is explicitly unchanged.

Overview
Export diagnostics and file status now summarize how exported bodies were derived (#409). The diagnostics sidecar gains body_sources (counts per existing BodySource / partition_* string) and bounding_box_bodies (record bounding-box bodies with no recovered plan profile). Aggregation walks exported building elements’ property sets for BodySource and ProfileResolved, using a shared RECORD_BBOX_BODY_SOURCE constant instead of a scattered literal.

Surfaces: rvt-ifc prints a one-line note when any stand-in boxes exist; the viewer Shapes row shows how many bodies use element-derived geometry vs bounding-box placeholders (warn when stand-ins > 0). The export-diagnostics JSON schema and changelog are updated; IFC geometry output is unchanged.

Reviewed by Cursor Bugbot for commit fe58468. Configure here.

…d the bounding-box stand-ins (#409)

Each element already carries a BodySource property; the diagnostics sidecar now totals them (body_sources) and counts the bodies that are only the element record's bounding box with no recovered plan profile (bounding_box_bodies). rvt-ifc prints the count and the viewer's file status shows it as a Shapes row. Core Interior 274 of 970, Snowdon Towers 4,770 of 6,081, RE1 Architecture 75 of 85.
@cursor

cursor Bot commented Sep 27, 2026

Copy link
Copy Markdown

Bugbot couldn't run - usage limit reached

Bugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit.

A user or team admin can review and increase usage limits in the Cursor dashboard.

(requestId: serverGenReqId_a83e30ff-bd1d-44f3-89b6-66e6c21db5ab)

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.

Export diagnostics and the viewer should count bodies by how they were derived

1 participant