Skip to content

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
mainfrom
research/1839-beam-ends-along-the-line
Draft

DrunkOnJava wants to merge 11 commits into
mainfrom
research/1839-beam-ends-along-the-line

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Nov 19, 2026 •

Copy link
Copy Markdown
Owner

Summary

DRAFT, not for review until its Measure is read. The beam-end probe (probe_1839_beam_column_ends) gains line_low and line_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:

  • 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 a plan axis at the middle of the beam's box, not along the beam's line;
  • it places the end of the beam's axis-aligned box, not the end of its line.

For a column w by d in line with a beam at angle a, the box's extent over the true chord is cos 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_low and line_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, labelled m, s, b); an outlines line; two turncheck lines.
  • tools/re/beam_ends_vs_ifc.py: an S6 section for the new fields, and the probe's outlines and turncheck lines repeated. It carries the scorer commit the reporter last ran (badebf0d), which was not on main.
  • 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; and S6 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.

  1. Nothing earlier moves. Against main, every field of every beam line that main prints is the same, and so is every scorer line main's output gives; the differences are the added fields and lines.
  2. A mesh outline gives the same answer on the turned model. On every model, of the ends whose outline is the column's saved mesh, all come out with the same column, t and extent (mesh=n/n), and largest_t and largest_extent are at most 1e-6.
  3. The old fields reproduce the reporter's finding on the turned model. Of the ends with an S5 extent on the turned model, at least 90 in 100 are above 1.01 of the mesh chord, and none is under 0.99, on each model that has at least 20 such ends.
  4. On the models as they are, the line's extent is Revit's chord. In the scorer's S6 lines, of the ends whose outline is the saved mesh, at least 90 in 100 are within 1 per cent of the chord of Revit's beam line through Revit's column, on each model that has at least 20 such ends.
  5. As they come: where the outlines are from (mesh, section, box) on each model, and the table of where the line's end and Revit's end lie in the chord.

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.

  1. Every line of the reporter's last post is the same, apart from the added lines.
  2. Of the oblique ends read from a saved mesh whose middle line crosses the column, if at least 90 in 100 are within 1 per cent, the misses were the scorer's line, not the probe's. That total will differ from the reporter's 272, since it also counts ends whose caps' line crossed no face; the middle-line misses are counted apart. The probe's extent is then right where the column's own outline is read, and what is left is where Revit stops the beam, which is what is read next.
  3. If under 90 in 100 are, the S6 offsets line 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:
    • an extent longer than every parallel chord means the outline itself differs from Revit's column at the beam, and that is what is read next;
    • one no longer than the longest is consistent with a line that crosses the column elsewhere, which this does not show.
  4. The middle-line counts for the record-box ends, the offset bins and the ends whose middle line crosses no face are reported as they come.

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 0eeeabb8 file 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, 857f7f06 and 0eeeabb8 print 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 main on the BIM4LCA models, with the probe and its scorer: pending.

  • tools/check-local.sh: not run (no local builds here); CI runs it. rustfmt --check and python3 -m py_compile pass locally.

Audit-honesty checklist

Legal and contribution hygiene

  • Apache-2.0; no Autodesk proprietary source, decompiled internals or NDA content (CLEANROOM.md).
  • No new fixtures. The reporter's model is confidential and is not read here.

Breaking changes

None. The probe prints two more fields on each beam line and three more lines.

https://claude.ai/code/session_01NCFPVqpXUmLDmXf35nPPeP

…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
@DrunkOnJava

Copy link
Copy Markdown
Owner Author

Rows 1 to 4, read on Measure 44485394727 (f2186fe4 against main at e734a934, the 12 BIM4LCA files, the probe and its scorer). aff04a2a after it changes only an import clippy asked for.

  1. Nothing earlier moves: holds. 12 of 12 exports and diagnostics.json identical. With the new fields and lines taken out, every model's probe output equals main's, line for line (12 of 12).
  2. A mesh outline gives the same answer on the turned model: holds on the mesh ends; the registered bound on the largest difference was worded wrong. On the two files whose beams name a column (the timber office as built and at permit), every end read from a column's saved mesh comes out with the same column, t and extent within 1e-6 after the probe turns the whole model by 4 degrees: 67 of 67 and 56 of 56. largest_t (0.032) and largest_extent (0.110 ft) are over every end with the same column, the record-box ends included, and those are the ones a turn has to change (0 of 42 and 0 of 40 the same). The row should have named the mesh ends alone; the probe will print their largest apart.
  3. The old fields reproduce the reporter's finding on the turned model: holds. S5's extent over the mesh chord, on the turned model: 66 of 66 (as built) and 56 of 56 (permit) above 1.01, none under 0.99. The bins (1.01 to 1.1: 50 and 41; 1.1 to 1.5: 16 and 15) are the shape of CHL's.
  4. On the models as they are, the line's extent is Revit's chord: holds. Of the ends read from a saved mesh, 67 of 67 and 56 of 56 are within 1 per cent of the chord of Revit's beam line through Revit's column; the record-box ends, 42 of 42 and 40 of 40, are too, since these columns are in line with the plan axes. Where the line ends in the chord matches where Revit's beam ends on 66 of 67 and 55 of 56, and on the other end of each both are in the near half.
  5. As they come. Outlines from the saved mesh, the section, the box: office as built 94, 0, 185; permit 72, 0, 274; timber office as built 235, 0, 109; permit 233, 1, 106; housing 5 to 25 from the mesh. Only the two timber office files have beams that name a column.

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
… 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

No deployments
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