Repository navigation
fix(ifc): a cabinet recessed into a room's wall is contained in the room's space (B63) - #656
Merged
Merged
Conversation
…oom's space (B63) #645 landed with Corpus health red, a check that is not required, and main has been red since. Run 37213656572 on main, "Corpus health (tier 2)": RE1-Architecture.rvt: 60 elements in both, 39 in a space in Revit's, 1 contained differently panicked at tests/space_containment.rs:183:5: RE1-Architecture.rvt: 1 of 60 elements are contained differently from Revit's export; first: ["375441: Revit 'RE-6', rvt-rs storey"] test result: FAILED. 0 passed; 1 failed 375441 is a medicine cabinet recessed into RE-6's wall. Its record box's point is 0.078 ft outside RE-6's outline, and its insertion point (its transform's origin, which is Revit's placement exactly) 0.032 ft outside, so Revit does not contain it by either point. Across all 39 candidates on RE1 Architecture the box point agrees with Revit on 38 and the insertion point on fewer (6 land in the wrong room), and 375441's plan box overlaps exactly one space, RE-6's. No candidate on the other models overlaps a space. An element whose point lies in no space is now contained in the one space its plan box overlaps, when exactly one does.
DrunkOnJava
added a commit
that referenced
this pull request
Oct 4, 2026
…64 and B70 in progress, B60 found (#660) Third session 3 progress update: five items landed, B64 (#659) and B70 in progress, new B70 and B71 rows (MEP sample performance), B68 blocked on B70, and RE-167's finding for B60. <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Low Risk** > Documentation-only backlog and session notes; no runtime, CI config, or exporter behavior changes in this diff. > > **Overview** > Updates **BACKLOG.md** for maintainer session 3: the ranked table and progress log reflect landed work and new perf backlog, without any code changes. > > **Status moves in the ranked table:** **B44**, **B63**, **B66**, **B53**, and **B69** are marked **done** (with PR refs #651, #645/#656, #657, #653). **B60** and **B64** move from **committed** to **in progress** (RE-167 type GlobalId rule; #659 curtain-wall door aggregation). **B68** is **blocked** on **B70** (MEP sample export timeout). Two new rows: **B70** (`rvt-ifc` ~33.5 min on MEP samples; `attach_mep_systems` / `attach_pipe_type_names` scans) and **B71** (double file walk for export vs diagnostics). > > **Progress log additions** document how each item closed or advanced: B63’s plan-box overlap rule for medicine cabinet 375441; B53/B69 writer fixes (refuse checksummed pages, full gzip members); B44’s three-reader NominalDiameter path; B66 curtain material offsets; B64 curtain-grid door parts; B70’s one-pass-per-stream improvement (30 s walk, byte-identical RE1 MEP IFC); B60’s original-symbol GlobalId finding; and a note that unresolved Bugbot threads block merges until resolved. > > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit a2c5a15. Configure [here](https://www.cursor.com/dashboard/bugbot).</sup> <!-- /CURSOR_SUMMARY -->
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.
Turns main's Corpus health green again: space_containment has failed on main since #645 (1 of 60, element 375441, a medicine cabinet recessed into RE-6's wall, 0.08 ft outside the room's outline). An element whose point lies in no space is contained in the one space its plan box overlaps, when exactly one does. Evidence (probe runs 37214796046, 37215316216, 37215827984) is in the commit message.
Note
Medium Risk
Changes IFC spatial structure for edge-case placements; logic is conservative (unique overlap only) but affects export parity validation for space containment.
Overview
Space containment for unhosted family-instance room content (furniture, sanitary terminals, proxies) now has a second rule when the instance placement point lies outside every room outline on its storey.
After the existing point-in-outline check, the exporter builds the element’s plan box from rotation and extrusion (default rectangular profile only) and assigns it to the sole space whose outline overlaps that box—corner-in-space or space-vertex-in-box—matching Revit for fixtures slightly outside the room boundary (e.g. a recessed medicine cabinet).
Refactoring introduces a shared
holdshelper and storey-scoped space iteration; assignment still requires exactly one overlapping space so ambiguous cases are not forced into a room.Reviewed by Cursor Bugbot for commit cba940e. Configure here.