Repository navigation
fix(ifc): cut a window's opening to the solid its symbol cuts (RE-225, #227) - #1095
Merged
Merged
Conversation
…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
force-pushed
the
feat/opening-cut-solids
branch
from
October 29, 2026 21:09
f4ea12e to
054023a
Compare
DrunkOnJava
marked this pull request as ready for review
October 29, 2026 23:01
DrunkOnJava
enabled auto-merge (squash)
October 29, 2026 23:01
3 tasks
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.
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 asCutSolidWidth,CutSolidDepthandCutSolidHeightin the element's own record-geometry set.src/ifc/mod.rs:opening_cuts_through_hostsuses them for anIfcWindow.changelog.d/fixed/opening-cut-solids.md.Testing
Unit tests are banned in this repository: do not add them.
opening_boxes_vs_ifcIfcWindow within 0.001 ft on 269 of 269 as built and 265 of 265 at permit (main: within 1.0 ft);openings_vs_ifcwithin 0.01 ft 185 → 454 and 185 → 450; door rows unchanged.opening_boxes_vs_ifcandopenings_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.