Repository navigation
fix(ifc): a wall's mesh quantities set aside each opening at its real height, not as tall as its start plus its top (#1046) - #1939
Merged
Conversation
… height, not as tall as its start plus its top (#1046) wall_frame_and_openings mapped an opening's z_range_feet, which is [start, height] (RE-93, as step_writer::opening_solid_position reads it), to [start, start + height] and then put the box's top at start + that, so a window starting above its placement had a box too tall by its start. Since #1741.
… the opening box fix adds (Measure 43511426932)
Owner
Author
|
Measure 43511426932: an unfiltered run against
|
DrunkOnJava
marked this pull request as ready for review
November 13, 2026 22:09
DrunkOnJava
added a commit
that referenced
this pull request
Nov 13, 2026
…1939's quantities and this change's material representations (Measure 43520712633)
DrunkOnJava
added a commit
that referenced
this pull request
Nov 13, 2026
…r --revit-property-sets, and docs and messages that say what the export does (batch 9) (#1946) ## Summary Batch 9's confirmed findings that change no IFC value, each re-read against the code by Claude: - **One material rule.** The viewer's schedule (`scene_graph::build_schedule`) read only an element's single material, so a layered wall showed none where the elements CSV names its layer set. `schedule_csv::MaterialNames` holds the CSV's rule (profile set, layer set, single material, constituents) and both use it. - **Counts after `--revit-property-sets`.** `export_pipeline` called `recount_exported` after every model-changing step but `revit_property_sets::attach`, so `exported.total_entities` missed the sets it adds. - **No storey means the building.** `BuildingElement.storey_index`, `ElementInput.storey_index`, a `step_writer` comment and the no-Level warning said an element with no storey goes to storey 0, or to a fallback storey. The writer contains it in the building (RE-27, RE-124), and they now say so. - **Docs that misstated the code.** - `BuilderOptions.units` named a `build_unit_list` that does not exist, and claimed the units become the `IfcUnitAssignment`; the writer's assignment is fixed SI (#403). - `ScheduleRow.guid` is the ElementId, not the GlobalId. - The pbr comment named the 2.2 gamma; the code applies the exact sRGB curve. - **Small guards.** - The element panel prints a length that rounds to zero as `0.000`, as its own rule says. - The glTF export drops a material index past the model's materials, as the STEP writer does. - `attach_wall_top_joins` replaces `m_wall_top_joined` rather than pushing a second copy. ## Motivation Batch 9, an export bug hunt: 40 DeepSeek checkers and 30 verifiers, $3.79. Two other fixes from it change exports and are their own PRs: #1939 (the opening box height) and #1940 (material colours). The rules that run on unmeasured releases are #1945. ## Testing No IFC value changes. `diagnostics.json` changes only in the no-Level warning's text, and in `total_entities` under `--revit-property-sets`, which no Measure run uses. The unfiltered Measure with the samples is in this PR's comments, to show the exports byte-identical and give the gates verdict. ## Audit-honesty checklist - [x] README / docs reflect the current state after this PR - [x] A user-visible change has its entry as a fragment under `changelog.d/fixed/`
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
wall_frame_and_openings(#1046, since #1741) builds the boxes of the openings a wall's saved-mesh quantities set aside. It read an opening'sz_range_feetas[start, start + height]and then put the box's top atstartplus that, so a door or window whose opening starts above its placement (RE-93) had a box too tall by its start. The box is now the opening the writer cuts: from its start, as high as it is (step_writer::opening_solid_positionreadsz_range_feetthe same way).Motivation
Found by the batch 9 export audit (a DeepSeek checker's lead, re-read against the code by Claude):
src/ifc/saved_meshes.rs:1418-1443. A box too tall can claim faces of the wall above a window as the opening's, which can move that wall'sQto_WallBaseQuantitiesside areas.Changes
src/ifc/saved_meshes.rs:[start, height]is taken as stored.changelog.d/fixed/opening-box-height.md.Testing
The unfiltered Measure against
main(every model and scorer, with the samples for the same-project gates) is in this PR's comments. It says which exports move and whether each movedQto_WallBaseQuantitiesvalue is closer to Revit's.Audit-honesty checklist
changelog.d/fixed/