Repository navigation
fix(ifc): a wall whose line drifts a hair off a model axis keeps its join-trimmed ends (#1806) (RE-447) - #1811
Closed
DrunkOnJava wants to merge 2 commits into
Closed
DrunkOnJava wants to merge 2 commits into
DrunkOnJava wants to merge 2 commits into
Conversation
…join-trimmed ends (#1806) (RE-447) wall_centreline_body took a line as axis-parallel only when a component of its unit vector was within 1e-9, a test of the angle. Walls 1347019 and 1347016 of the BIM4LCA concrete housing at permit drift 4.9e-8 and 6.9e-8 ft across the axis over 16.0 and 26.9 ft (3.1e-9 and 2.6e-9), so once #1807 gave them their type's thickness they took the angled branch, whose box closure divides by that component and fails, and whose fallback runs the wall from one end of its line to the other: the ends the record box's joins trimmed were lost (0.935 and 0.886 ft). A line is now axis-parallel when its ends lie within WALL_AXIS_BOX_TOLERANCE_FEET (1e-6 ft) of each other across the axis, and tapered_wall_solid and layered_wall_profile pick their run by the same test, so a body with no rotation takes the run of the branch that drew it. The code edits were proposed by a Tendrils worker (DeepSeek V4.1 Flash) in Griffin's pilot of 2026-11-12, from a cause rvtDevelop had found and checked; rvtDevelop read and applied them and wrote the changelog fragment. Claude-Session: https://claude.ai/code/session_01L1QUmYwb7cHmeCQU8FD2Ge
…at drifts a hair off an axis, so its windows keep their flip (#1806) (RE-447) The first version of this change (d052a37) sent a line drifting 5e-8 ft across a model axis to the axis-parallel branch. Measure 43264161874 showed the ends it meant to restore are back on Revit's, and three window type GlobalIds of the two BIM4LCA housing files at permit that agreed with Revit's no longer did: door_symbol_flipped reads a window's flip from the side of its host wall's line its centre lies on, within 1e-9 ft, and a window centred on the line moved across it when the wall was snapped to the axis through its start. The axis-parallel tests are as on main again, and so are the run choices of tapered_wall_solid and layered_wall_profile. Instead, in the angled branch, where the box does not close and the line's ends lie within WALL_AXIS_DRIFT_FEET (1e-6 ft) of each other across an axis, the wall keeps the box's extent along that axis, centred where the box's centre falls on the line, at the line's own angle. A wall whose box closes, and every wall at a real angle, is drawn as on main. The cost stays as registered on #1636: the other end of each of the two walls returns to the box's join trim (1.378 and 1.280 ft short), which is #1814. Claude-Session: https://claude.ai/code/session_01L1QUmYwb7cHmeCQU8FD2Ge
6 tasks done
Owner
Author
DrunkOnJava
added a commit
that referenced
this pull request
Nov 12, 2026
…ight for a wall whose line drifts off an axis, and no per-end rule that is (#1806) (RE-447) (#1822) ## Summary RE-447 records a measured negative. A wall whose location line drifts about 5e-8 ft across a model axis is drawn from its line's ends, not its joined record box's, and neither is Revit's end everywhere. No per-end rule read from the wall's joins chooses right at every end. No export changes. `tools/re/wall_ends_list.py` now lists every wall with an end off by more than the tolerance, rather than the 40 largest, which hid most of these ends. ## Motivation After #1807 (RE-446) gave two walls of the BIM4LCA concrete housing at permit their type's thickness, an end of each moved from exact to 0.886 and 0.935 ft off Revit's (#1806). #1811 tried three bodies. This report keeps the measurement so nobody re-probes it, and points the ends at #1814. ## Changes - `reports/element-framing/RE-447-drifting-wall-ends.md`: the three bodies tried, every one of the 21 ends where the box and the line differ, the per-file counts, the rules tried and where Revit's end lies. - `tools/re/wall_ends_list.py`: lists every wall off by more than the tolerance, not the 40 largest. `--list N` still caps the list. - `changelog.d/research/447-drifting-wall-ends.md`, and an RE-447 pointer in `docs/release-1.0-criteria.md` beside #1806. ## Testing - **Measure runs:** [43264161874](https://github.com/DrunkOnJava/rvt-rs/actions/runs/43264161874) and [43272620592](https://github.com/DrunkOnJava/rvt-rs/actions/runs/43272620592), both unfiltered, and [43273535656](https://github.com/DrunkOnJava/rvt-rs/actions/runs/43273535656) (the four moved models, every wall end, and `probe_re252_wall_ends`). All ran against `main` 314eeac. The three cited commits are archived under `refs/archive/2026-11-12/cited/`. - **Rules:** I scored the rules of §5 myself on all 21 ends, from the probe's `ends` field and the per-end errors. The end's own `JoinEndGStep` being non-empty picks right at 19 of 21, and "the box where it lengthens the wall" at 17. A Tendrils worker proposed the candidates; every count in the report was re-run here. - **Planes:** the check moves each line end by its error to Revit's end and finds the nearest crossing plane of `planes` on the named walls. - All 9 ends where the line is nearer fall within 0.0001 ft of a layer plane inside a wall's faces. - 4 of the 12 ends where the box is nearer fall on a face. - The other 8 name walls the reader gives no line, so they cannot be checked. - **Checks:** `python3 tools/release/changelog.py check` and `python3 tools/ci/api-doc-ids.py` pass. ## Audit-honesty checklist - [x] Claims match what ships: nothing is written differently. The report says the best rule was fitted on these ends and that no held-out drifting wall exists. - [x] Changelog fragment under `changelog.d/research/` - [x] No emojis or private paths - [x] Probe: `probes/examples/probe_re252_wall_ends.rs` (already on `main`) ## Legal and contribution hygiene - [x] Apache-2.0 - [x] No Autodesk source, decompiled internals or NDA material. Only byte observations of the BIM4LCA files and Revit's own IFC exports of them (CLEANROOM.md sources 1 and 3). ## Breaking changes None. https://claude.ai/code/session_01L1QUmYwb7cHmeCQU8FD2Ge
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_centreline_bodytook a wall's line as axis-parallel only when a component of its unit vector was within 1e-9 of zero, which is a test of the angle. On the BIM4LCA concrete housing at permit, walls 1347019 and 1347016 have lines that drift 4.9e-8 and 6.9e-8 ft across the axis over 16.0 and 26.9 ft. Once #1807 gave them their type's thickness, they took the angled branch. Its box closure divides by that component and fails, and its fallback runs the wall from one end of its line to the other. That lost the ends the record box's joins had trimmed: 1347019's end and 1347016's start went from exact to 0.935 and 0.886 ft off. A line is now axis-parallel when its ends lie within 1e-6 ft of each other across the axis.tapered_wall_solidandlayered_wall_profilepick their run by the same test.Draft: the unfiltered Measure (43264161874) is running. The rows are registered on #1636 (comment), and this description is filled in from its read.
Motivation
Fixes #1806, the cost #1807 (RE-446) reported.
Changes
src/ifc/export_content.rs: the two axis-parallel tests ofwall_centreline_body, its doc comment, and the run selection oftapered_wall_solidandlayered_wall_profile.changelog.d/fixed/1806-walls-a-hair-off-the-axis-keep-their-trimmed-ends.md.The code edits were proposed by a Tendrils worker (DeepSeek V4.1 Flash) in a pilot of 2026-11-12, from a cause I had found and checked. I read and applied them.
Testing
Pending the Measure read;
full / CI passedon the final head.Related issues
Fixes #1806. Refs #1807, #1802, #1636.
https://claude.ai/code/session_01L1QUmYwb7cHmeCQU8FD2Ge