Repository navigation
research(elements): the beam-end probe reads each end along the beam's own line by the column's own outline, and checks itself on a model it turns (#1839) - #2093
Draft
DrunkOnJava wants to merge 11 commits into
Conversation
…he chord by its source and by the column's outline (#1839) Claude-Session: https://claude.ai/code/session_01TFTgj3B39AgPT5E6mwwWTQ (cherry picked from commit badebf0)
…s own line by the column's own outline, and checks itself on a model it turns (#1839) S5 on the reporter's Revit 2027 frame, turned about 4 degrees from the plan axes, found the probe's extent longer than the chord of the beam's line through Revit's column on 308 of 339 ends at a rectangular column and shorter on none. Three things in the probe make that so. It takes the rectangle the export draws for a column as the column's section, and the export draws a column as its record box, which on a turned column is the axis-aligned box around it. It cuts that rectangle along the plan axis the beam's box is longer on, at the middle of the beam's box, not along the beam's line. And it places the end of the beam's axis-aligned box, not of its line. line_low and line_high ask the same question along the bounded line of the beam's element data, against the plan hull of the column's saved mesh where it decodes whole (the column's own shape whichever way it is turned), else the export's section where that is not the record box, else the record box, each labelled. The probe then turns the whole model by 4 degrees itself (a record box becomes the axis-aligned box of the turned one, as a file of a turned structure holds it) and prints on how many ends the line fields come out the same, and what the old fields would read as the extent over the chord there. The scorer reads the new fields beside Revit's export and repeats the probe's check. Every earlier field and line is unchanged. Claude-Session: https://claude.ai/code/session_01NCFPVqpXUmLDmXf35nPPeP
…t, as clippy's unused_qualifications asks (#1839) Claude-Session: https://claude.ai/code/session_01NCFPVqpXUmLDmXf35nPPeP
Owner
Author
|
Rows 1 to 4, read on Measure 44485394727 (
Next: a Windows build of this head for HWT-25's CHL run (probe-binaries), and the rows for that run, registered before it is asked for. |
…t difference over the mesh ends apart (#1839) Row 2 of the draft asked that the ends read from a saved mesh come out the same on the turned model to 1e-6. The largest differences the check printed were over every end with the same column, record-box ends included, which a turn has to change. The mesh ends' own largest differences are now printed beside them. Claude-Session: https://claude.ai/code/session_01NCFPVqpXUmLDmXf35nPPeP
This was referenced Nov 19, 2026
… saved mesh and off Revit's chord, whether a line parallel to Revit's beam line gives its extent (#1839)
… beam's middle line too, and asks of the ends off the caps' chord whether the extent is longer than any parallel line's chord (#1839)
…s no face of Revit's column apart from a chord under 1 mm (#1839)
…ddle line in the chord of Revit's column there, by width and the column's turn from the beam (#1839)
… column's near face by where rvt-rs's line ends, and reads a hollow beam's end in its middle line's vertical plane (#1839)
… face apart, and splits the ends by how many named columns hold them (#1839)
… column's near face in millimetres, short of it and inside apart (#1839)
This branch has not been deployed
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
DRAFT, not for review until its Measure is read. The beam-end probe (
probe_1839_beam_column_ends) gainsline_lowandline_high: each end read along the beam's own line, against the column's own outline, with a check the probe runs on a model it turns by 4 degrees itself. Its scorer reads the new fields beside Revit's export. Every earlier field and line is unchanged. Research only: no export changes.Motivation
#1839. The reporter's S5 run on a Revit 2027 frame turned about 4 degrees from the plan axes found the probe's extent longer than the chord of the beam's line through Revit's column on 308 of 339 ends at a rectangular column, and shorter on none. Reading the probe gave three causes:
For a column
wbydin line with a beam at anglea, the box's extent over the true chord iscos a + (d/w) sin a: 1.07 for a square column at 4 degrees, and never under 1.Changes
probes/examples/probe_1839_beam_column_ends.rs:line_lowandline_high(the bounded line of the beam's element data; the column's outline from the plan hull of its saved mesh, else the export's section where that is not the record box, else the record box, labelledm,s,b); anoutlinesline; twoturnchecklines.tools/re/beam_ends_vs_ifc.py: an S6 section for the new fields, and the probe'soutlinesandturnchecklines repeated. It carries the scorer commit the reporter last ran (badebf0d), which was not onmain.tools/re/beam_ends_vs_ifc.py, after the reporter's S6 run on Beams run to the ends of their location line, where Revit's export cuts them back at the columns they frame into (#1829) #1839 (0eeeabb8):S6 middle line, the same extents set over the chord along the beam's middle line (through the middle of its extent across in plan and up), beside the line through the end caps' centres, with a middle line that crosses no face of the column counted apart; andS6 offsets, for each end read from a saved mesh and off the caps' chord by more than 1 per cent, how far the caps' line is from the middle line at that end and whether the extent is longer than the column's longest chord along any line parallel to the middle line. Every earlier line is unchanged.Testing
Unit tests are banned in this repository. Rows registered here before any run is read. The models are the BIM4LCA office and housing files, whose frames are in line with the plan axes, so the turn is the probe's own.
main, every field of everybeamline thatmainprints is the same, and so is every scorer linemain's output gives; the differences are the added fields and lines.tandextent(mesh=n/n), andlargest_tandlargest_extentare at most 1e-6.The middle line (
0eeeabb8), registered on #1839 before the reporter runs it (comment). On the reporter's CHL the misses of row 4 are on rectangular prisms turned against their beam, 32 of the 33 over 1.5. The line through the end caps' centres leaves the beam's middle where Revit cuts an end obliquely, which is not known to happen there; this run tests it.S6 offsetsline is read on its own counts: the ends read from a saved mesh and off the caps' chord by more than 1 per cent, which leaves out those whose caps' chord is under 1 mm. Of those:Checked before it was posted:
Run 44577034237 (
4182b733, the timber office as built and at permit): the middle line gives the caps' line's counts, 67 and 42 ends, and 56 and 40, all within 1 per cent. Every beam there is in line with its column, so this shows the lines run, not that the middle line is placed right.Locally with the
0eeeabb8file on copies of that run's probe output as built: with three mesh-read extents doubled and three halved, the doubled ones are longer than every parallel chord, the halved ones not, and none is within 1 per cent of the middle line's chord; with all 67 doubled, the caps' line is within 0.05 ft of the middle line at all 67. On the unforced output,857f7f06and0eeeabb8print the same lines apart from the three added ones. No obliquely cut end has been read on any file yet.Measure of this head against
mainon the BIM4LCA models, with the probe and its scorer: pending.tools/check-local.sh: not run (no local builds here); CI runs it.rustfmt --checkandpython3 -m py_compilepass locally.Audit-honesty checklist
Legal and contribution hygiene
Breaking changes
None. The probe prints two more fields on each
beamline and three more lines.https://claude.ai/code/session_01NCFPVqpXUmLDmXf35nPPeP