Repository navigation
fix(ifc): a wall that is a prism less an opening rvt-rs cuts with nothing filling it gets its side areas (#1046) - #2045
Merged
Conversation
…de areas, read against each opening's own rectangle (#1046) jambs_explain and prism_less_openings compared a wall's faces with the world boxes of its openings, which are each opening's extent in the wall's frame only on a wall along or across a model axis, so they refused every other wall. The openings are now passed as the corners of their rectangles (OpeningBox) and read in the wall's frame, exact at any turn where the opening turns with the wall (OPENING_TURN_TOLERANCE, as before). Claude-Session: https://claude.ai/code/session_01TFTgj3Ddfs7cFGMNAgVAut
…hing filling it gets its side areas (#1046) wall_frame_and_openings offered the wall quantities rule only the rectangles of the doors and windows a wall hosts, so a wall whose extra faces are the jambs of a WallCutOpening (a rectangular wall opening, a door's opening in a second wall, a curtain wall's cut) was refused. A WallCutOpening that passes through its wall (recess false) and whose outline is a rectangle is now an OpeningBox too, placed in the wall's frame along its own axis. Stacked on #2043 (OpeningBox). Claude-Session: https://claude.ai/code/session_01TFTgj3Ddfs7cFGMNAgVAut
# Conflicts: # changelog.d/fixed/1046-turned-wall-openings.md # src/ifc/saved_meshes.rs
DrunkOnJava
marked this pull request as ready for review
November 15, 2026 06:48
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
A wall whose saved mesh is a vertical prism less its openings now counts the openings rvt-rs cuts through it with nothing filling them (
WallCutOpening), as well as its doors' and windows'. Such a wall can then getGrossSideArea,NetSideArea,GrossVolumeandHeightfrom its mesh.Builds on #2043's
OpeningBox(merged); main is merged in at8cc7d472, so the diff is this change alone.Motivation
#1046's last comment lists, among the walls still without the set, "walls whose extra faces come from something other than a door's or a window's rectangle: a profile opening, a wall opening nothing fills, a face-hosted cut, a floor's void". This takes the wall opening nothing fills, when it is a rectangle through the wall:
The other three stay out.
Changes
src/ifc/saved_meshes.rs, inwall_frame_and_openings: eachWallCutOpeningwithrecess: falsewhose outline is a rectangle (outline_rectangle: four distinct corners at the ends of its two ranges) becomes anOpeningBox. It is placed along its own axis, turnedaxis_turn_radiansfrom its wall's placement, with its cut's thickness about its plane, and must turn with its wall (OPENING_TURN_TOLERANCE).changelog.d/fixed/1046-unfilled-wall-openings.md.Testing
Measure 43682970477: full,
9c5b7e6e(everysrcchange of this PR) against #2043's head3ff86d94, withnordic,r2025,samplesandholdout. Rows registered before it was read:Held. Each wall that gains the set reads equal to Revit's on all four values.
differentdoes not rise, and no value appears that Revit does not write.Qto_WallBaseQuantitiesequal values, before to after:That is 745 more equal over two projects.
differentand "Revit does not write" are unchanged on every file.Held. Every other export is byte-identical: 111 of 120
ifc.sha256and 102 of 102diagnostics.json. The ninth export that moves is Snowdon Towers Architectural, which has no Revit export in Measure. Run 43686206074 kept both sides' IFC. Its walls gain 19 values: 6 each ofGrossSideArea,NetSideAreaandGrossVolume, and 1Height, over 1,078 walls. They are counted apart, since no Revit export can check them: Revit's local IFC4 export of Snowdon writes no base quantities at all.Held.
same-project gatespass on9c5b7e6e(check run).After the measured head,
8cc7d472merges main (#2043 landed; this PR'ssrcdiff is unchanged) and1a332637is the changelog fragment's figures.Audit-honesty checklist
Legal and contribution hygiene
Breaking changes
None.
https://claude.ai/code/session_01TFTgj3Ddfs7cFGMNAgVAut