Skip to content

fix(ifc): a wall that is a prism less a rectangular opening its edited profile cuts gets its side areas (#1046) - #2050

Closed
DrunkOnJava wants to merge 5 commits into
mainfrom
fix/1046-profile-openings
Closed

DrunkOnJava wants to merge 5 commits into
mainfrom
fix/1046-profile-openings

Conversation

@DrunkOnJava

Copy link
Copy Markdown
Owner

Summary

A wall whose saved mesh is a vertical prism less its openings now also counts the rectangular openings its own edited elevation profile cuts through it (WallProfileOpening). Such a wall can then get GrossSideArea, NetSideArea, GrossVolume and Height from its mesh.

Stacked on #2045, which adds the WallCutOpening case this extends. Until #2045 lands, this PR's diff holds its commits too.

Motivation

#1046 lists "a profile opening" among the extra faces the rule could not yet explain.

Changes

  • src/ifc/saved_meshes.rs, wall_frame_and_openings: the WallCutOpening match also takes WallProfileOpening. The two carry the same placement fields, and the same rectangle test applies.
  • changelog.d/fixed/1046-profile-openings.md.

Testing

Full Measure of 3b154f75 against #2045's head 1a332637, dispatched once fast CI is green. Rows registered before it is read:

  1. Each wall that gains the set reads equal to Revit's on all four values. different does not rise, and no value appears that Revit does not write.
  2. Every export with no such wall is byte-identical.
  3. same-project gates pass.

https://claude.ai/code/session_01TFTgj3Ddfs7cFGMNAgVAut

…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
…d profile cuts gets its side areas (#1046)

wall_frame_and_openings now takes a WallProfileOpening whose outline is a
rectangle as an OpeningBox, placed along its own axis like a
WallCutOpening, so the jambs and heads a profile's rectangular cut makes
in a wall's saved mesh are explained.

Claude-Session: https://claude.ai/code/session_01TFTgj3Ddfs7cFGMNAgVAut
@DrunkOnJava

Copy link
Copy Markdown
Owner Author

Closing without merging. Measure 43687654187 (3b154f75 against #2045's head 1a332637, full, with the BIM4LCA models, the Revit 2025 models, the samples and the held-out pairs):

  • 119 of 120 exports and all 102 diagnostics.json are byte-identical. The same-project gates pass.
  • The one export that moves is Autodesk's rac_basic 2024 sample, which has no Revit export.

So no wall with a Revit export is reached. The evidence for wall openings (#2045: 745 equal over two projects) is about openings Revit cuts with nothing filling them. It says nothing about whether Revit's export gives a wall with an edited elevation profile the same four values. Without a scored instance the rule would rest on the geometry alone, so it does not land.

The change is archived as refs/archive/2026-11-15/cited/3b154f75e505. It can be measured again when a model with a Revit export has a profile-edited wall it reaches. #1046 records it.

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