Skip to content

fix(ifc): a cabinet recessed into a room's wall is contained in the room's space (B63) - #656

Merged
DrunkOnJava merged 1 commit into
mainfrom
fix/b63-recessed-in-wall
Oct 4, 2026
Merged

DrunkOnJava merged 1 commit into
mainfrom
fix/b63-recessed-in-wall

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Oct 4, 2026 •

Copy link
Copy Markdown
Owner

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 holds helper 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.

…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
DrunkOnJava merged commit 772d817 into main Oct 4, 2026
25 checks passed
@DrunkOnJava
DrunkOnJava deleted the fix/b63-recessed-in-wall branch October 4, 2026 16:31
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 -->
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