Skip to content

fix(ifc): cut a window's opening to the solid its symbol cuts (RE-225, #227) - #1095

Merged
DrunkOnJava merged 3 commits into
mainfrom
feat/opening-cut-solids
Oct 29, 2026
Merged

DrunkOnJava merged 3 commits into
mainfrom
feat/opening-cut-solids

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Oct 29, 2026 •

Copy link
Copy Markdown
Owner

Summary

Part of #227 (RE-225). A window set in a wall whose symbol cuts a solid (m_complexCutGeoms) and no outline had its opening cut to the wall's thickness and its box's height. Revit's export cuts it to the solid: deeper across the wall and lower at the bottom (on the BIM4LCA office's windows 0.328 ft deeper each side and 0.059 ft lower). The opening is now as deep as the solid's extent across the wall, centred on it, and as tall as the solid, down from the body's top.

Doors are left as they were. The same rule moved four office doors' openings closer to Revit's but brought none within 0.001 ft (Measure run 40945971175: one within 0.1 ft, three within 0.26 ft, five still over 1 ft), so a door keeps its box opening, as fail-closed asks.

Changes

  • src/native_symbol_cuts.rs, src/partition_schema_mvp.rs: the extents of the solid a symbol cuts, carried as CutSolidWidth, CutSolidDepth and CutSolidHeight in the element's own record-geometry set.
  • src/ifc/mod.rs: opening_cuts_through_hosts uses them for an IfcWindow.
  • changelog.d/fixed/opening-cut-solids.md.

Testing

Unit tests are banned in this repository: do not add them.

  • Measure run 40952407086 (office only, before the rebase): opening_boxes_vs_ifc IfcWindow within 0.001 ft on 269 of 269 as built and 265 of 265 at permit (main: within 1.0 ft); openings_vs_ifc within 0.01 ft 185 → 454 and 185 → 450; door rows unchanged.
  • Measure run 40955340467 (rebased on main, with feat(ifc): draw doors and windows from their saved meshes by default #1089's saved meshes; unfiltered, nordic and r2025, every scorer): of 31 models only the two office versions move, only in opening_boxes_vs_ifc and openings_vs_ifc: IfcWindow within 1.0 ft → within 0.001 ft on 269 and 265, door rows unchanged.

No door or window of Core Interior, RE1 or puzzbobb's Revit 2025 models cuts a solid, so their openings do not move.

…ts (RE-225, #227)

Where a wall-hosted door or window's symbol cuts a solid and no loop,
Revit's export cuts the opening to that solid. On the BIM4LCA office every
window's opening was 0.328 ft short of Revit's on each side across the wall
and 0.059 ft too high at the bottom (Measure run 40929603795); the window
symbols' cut solids are 2.0833 ft deep and OverallHeight + 0.0594 ft tall
(probe_re225_symbol_cut_geoms, run 40930485456). instance_cuts_and_symbols
now returns each such instance's solid extents, the partition reader
carries them as fields and the exporter as properties, and the opening
takes the solid's depth and height from the body's top. No door or window
of Core Interior, RE1 or the R2025 models cuts a solid (run 40943710881).
…227)

Measure run 40945971175: the solid gives Revit's opening on all 269 of the
BIM4LCA office's windows as built and 265 at permit, but on none of its
doors, 4 of which only move closer. A door keeps its box opening.
@DrunkOnJava
DrunkOnJava force-pushed the feat/opening-cut-solids branch from f4ea12e to 054023a Compare October 29, 2026 21:09
@DrunkOnJava DrunkOnJava changed the title fix(ifc): cut a door's or window's opening to the solid its symbol cuts (RE-225, #227) fix(ifc): cut a window's opening to the solid its symbol cuts (RE-225, #227) Oct 29, 2026
@DrunkOnJava
DrunkOnJava marked this pull request as ready for review October 29, 2026 23:01
@DrunkOnJava
DrunkOnJava enabled auto-merge (squash) October 29, 2026 23:01
@DrunkOnJava
DrunkOnJava merged commit 5553b66 into main Oct 29, 2026
28 checks passed
@DrunkOnJava
DrunkOnJava deleted the feat/opening-cut-solids branch October 29, 2026 23:07
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