Skip to content

fix(saved-graphics): an edge two cylinder faces share takes the points where the two cylinders meet, held by both faces, so the faces meet (#2104) - #2107

Merged
DrunkOnJava merged 4 commits into
mainfrom
fix/2104-cylinder-saved-chords
Nov 20, 2026
Merged

DrunkOnJava merged 4 commits into
mainfrom
fix/2104-cylinder-saved-chords

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Nov 20, 2026 •

Copy link
Copy Markdown
Owner

Summary

Step 1 of #2104. Where two cylinder faces share an edge whose saved samples run across both parameters on both sides, the edge takes the points where the two cylinders meet between its saved samples, refined once and held by both faces' rings; every added point is solved onto both surfaces. On the 77 files read, no boundary vertex between two cylinders is left over 0.001 ft, against 3,170 on main, and no other pair of surfaces parts. Two of the eight registered rows failed: 45 of the 62 bodies that move on Snowdon Towers Architectural fit Revit's export worse on one count, and one toilet on RE1 Architecture leaves the 0.01 ft band (#2111, read next). The bodies the probe reads hold up to 1.35 times the triangles on the plumbing and HVAC samples. Griffin chose to land it with that on record, and kept the choice once told the triangle cost (2026-11-20). Report: RE-495.

Motivation

#2104: on main, two cylinder faces each put their own steps between an edge's saved points, so their boundaries part: up to 0.00158 ft on Snowdon Towers HVAC's 36 Round Tee:Standard (1,152 boundary vertices over 0.001 ft), and about 3,170 over 0.001 ft in all on the samples and the BIM4LCA housing. RE-492 and RE-493 put the faces beside a plane on shared points; between two cylinders nothing did.

Changes

  • src/research/native_saved_mesh.rs:
    • refined_curved_edge: an edge whose other face is a cylinder goes to refined_cylinder_pair_edge.
    • refined_cylinder_pair_edge: where both sides' samples run across both parameters (isoparametric_axis), side 0 bisects between its saved samples with bisect_crossing_edge, solving each point onto side 1's cylinder, until the chord between neighbours is within EDGE_SAGITTA, as refine_crossing_edge_within does at a plane. Side 1 takes the same points in its own parameters. A point beyond either face's envelope is left out by both. An edge that does not qualify, or whose refinement fails, keeps the samples the graph stored; the cylinder's point budget refuses as at a plane.
    • CylinderFrame: a cylinder's frame, evaluation, signed distance from its surface and parameters of a point.
  • reports/element-framing/RE-495-cylinder-pair-edges.md: the report.
  • changelog.d/fixed/2104-cylinder-pair-edges.md: the changelog fragment.
  • docs/format-reconnaissance.md: RE-495's addendum.

Testing

Unit tests are banned in this repository. Rows registered before any run of this head was read: the rows for ed2d342d; the full reading: rows 1 to 4 and 7 hold, row 5 fails on one family row, row 6 fails, row 8 is read. The probe on 77 files (44730930391) and the full Measure (44730938605: 89 of 120 exports and all 102 diagnostics.json identical; 2,818 bodies change on the 30 kept exports that differ, every one on the probe's cylpair list; the same-project gates pass). The commit after ed2d342d is docs only: the report, the changelog fragment and the reconnaissance entry.

Review: rvtReview, the maintainer session, wrote this change and, as rvtDevelop is not running, re-reads its diff and approves it itself on a green head (Griffin, 2026-11-12).

Audit-honesty checklist

  • The report (RE-495) and the changelog fragment follow the runs.

Legal and contribution hygiene

  • Apache-2.0; no Autodesk proprietary source, decompiled internals or NDA content (CLEANROOM.md).
  • No new fixtures.

Breaking changes

None: research module internals only.

@DrunkOnJava

Copy link
Copy Markdown
Owner Author

The rows as read: 1 to 4 and 6 hold, 5 fails, so this does not go for review as it is.

  1. Holds. In run P (44698431262), no boundary vertex between two cylinders is left over 0.001 ft on any of the 77 files: Snowdon Towers HVAC's 1,152, Snowdon Towers Architectural's 604 (the Saved-graphics bodies part by up to 0.0024 ft where two curved faces share an edge, and at one ruled face #2104 note's run counted 588 on an earlier main; the difference is not read), Plumbing's 378, 144 on each rac_basic save, 72 on each of the four housing buildings and RE1 Architecture's 28 go to 0.
  2. Holds. No other pair of surfaces gains a vertex over 0.001 ft, and no body does.
  3. Holds, on a wider list than registered. In run M (44699418709), the 2,973 bodies whose mesh changes on the 34 kept exports that differ are all bodies run P lists with a cylinder-to-cylinder pair line. That list holds every body with such a pair, not only those whose edge this change moves. The held-out house's export moved and is not kept; its kept counts are all unchanged.
  4. Holds. No count of the four body scorers falls (the one count line that moves is RE1 Architecture's IfcFlowTerminal at 0.01 ft, 4 to 5), and no psets_vs_ifc or qtos_vs_ifc line moves. The 112 lines stair_bodies_vs_ifc moves are on four housing files' stairs, each holding railings among its parts whose meshes moved.
  5. Fails. Against Revit's IFC4 export of Snowdon Towers Architectural, read locally on run M's exports, 23 of the 53 bodies that move are worse than on main on at least one of the row's four counts. The read lists 20 of them, each with more of Revit's vertices beyond 0.001 ft of rvt-rs's surface: 18 from 308 to 333 each, one from 770 to 854 and one from 524 to 621; the other three are not listed. Over all 53, Revit's vertices beyond 0.001 ft go from 23,243 to 23,949; beyond 0.01 ft, from 8,806 to 8,804. rvt-rs's beyond 0.001 ft of Revit's go from 204,308 to 203,248.
  6. Holds. The same-project gates pass on b4a26e55.

Why row 5 fails, read on one toilet. 24 of its vertices are not where main puts a vertex, up to 0.0019 ft from the nearest (median 0.0012 ft). None of the 38 Revit vertices that newly stand more than 0.001 ft off is near one: all are nearer a vertex that did not move, at a median 0.37 ft from a moved one. A cylinder face is drawn in strips along its axis, so moving a boundary vertex onto the straight line between two saved points moves the whole length of the long triangles it is a corner of. Those moves are larger than the 0.001 ft the row asks. Whether the moved vertices lie inside the cylinder is not read, and neither are the others.

What changes. A rule that closes the gap must keep each vertex on its own cylinder, so the strips do not tilt, and bring both faces' boundaries onto the same line along the edge. The straight line between saved points does the second only; main does the first only. Points on the curve where the two cylinders meet lie on both surfaces, so the candidate I will build next puts the edge's points there. How the two faces share those points is read first in the code that already refines an edge a cylinder shares with a plane, and row 1 is measured again. New rows for the new head come before its runs, with row 3 on the narrower list and an outcome for row 5.

The pairs with a surface of revolution, step 2 of #2104, follow this rework rather than the straight-line rule the note on #2104 planned for them.

…s where the two cylinders meet, refined once and held by both faces, in place of the straight line between its saved points (#2104)
@DrunkOnJava

Copy link
Copy Markdown
Owner Author

Rebuilt at ed2d342d, as the reading above said (Griffin chose to rebuild before landing, 2026-11-20). The straight-line rule is gone. An edge two cylinder faces share, where both faces' saved samples run across both their parameters, now takes the points where the two cylinders meet, refined once and held by both faces:

  • One list for both faces. The edge's side 0 bisects between its saved samples in its own parameters, solving each new point onto side 1's cylinder, until the chord between neighbours is within EDGE_SAGITTA of the edge. This is what refine_crossing_edge_within does where a cylinder meets a plane, through the same bisect_crossing_edge. Side 1 takes the same points in its own parameters.
  • Every added point is solved onto both cylinders, so no added vertex leaves its own surface; the saved samples are kept as stored. A point beyond either face's envelope is left out by both.
  • Anything else keeps what it had. An edge that does not qualify keeps the samples the graph stored, as on main, and so does a refinement that fails, apart from the cylinder's point budget, which refuses as it does at a plane. How many refinements fail is not counted.

The list is the ring's. Each face still puts its own strip points between the shared ones, so whether the faces meet within 0.001 ft is measured, not given.

Rows, registered before any run of this head is read. The probe is probe_2098_face_cracks, the same file on measure/2104-cand (97a54e71, this head) and measure/2104-main-base (2b57a4d9, main at d089085b). It now also prints cylpair owner=… edges=… for each body that reaches an edge between two cylinders whose samples run across both parameters on both sides.

  1. The cylinder pairs meet. In the probe runs, no boundary vertex between two cylinders is left over 0.001 ft on any file read.
  2. Nothing is lost. No body that has a saved mesh on main loses it (ifc_body_diff.py's "drawn from a saved mesh in the base and not in the head"), no body the probe reads is newly refused (its refused=), and no refusal reason rises in any diagnostics.json.
  3. Nothing else parts. No other pair of surfaces gains a vertex over 0.001 ft, and no body gains one. On a two-loop face every ring point is a strip edge, so the added points add vertices to the face's other edges too: where a pair already over 0.001 ft on main rises by count, it is judged by its largest gap (the probe's far lines), which must not grow.
  4. Only those bodies move. The bodies whose mesh changes in the full Measure are bodies the probe lists on a cylpair line. The probe uses its own copy of the test of whether samples run across both parameters, so the two lists can differ at the margin; a body that moves and is not listed is read.
  5. Nothing scored moves away from Revit. No count of mesh_bodies_vs_ifc, saved_meshes_vs_ifc, roof_bodies_vs_ifc or stair_bodies_vs_ifc falls, and no psets_vs_ifc or qtos_vs_ifc line moves.
  6. Against Revit's export of Snowdon Towers Architectural (bldrs-ai/test-models, read locally on the kept exports, with row5.py from refs/archive/2026-11-20/measure-2107-reads (106bef91, research-tools/2107/)): every body that moves is read both ways. None is worse than on main: no more of Revit's vertices beyond 0.001 ft or 0.01 ft of rvt-rs's surface (Revit's vertices are fixed, so their count is the measure), and rvt-rs's farthest vertex from Revit's surface no farther (this head adds vertices of its own, so rvt-rs's count is not the measure).
  7. The same-project gates pass.
  8. What the added points cost, reported. The probe's total … triangles= on base and head, and each kept export's size. A file whose triangles grow by more than 10 per cent, or an export that crosses the 120 MiB Measure validates (Measure skips validating exports over 120 MiB, and Snowdon plumbing passes that once #2102 lands #2103), is read.

One thing was seen before these rows: the watcher printed run 44720380479's summary line (9 of 16 exports differ, all 16 diagnostics.json identical). Nothing else of either run has been read.

Runs, in order. First, cheap ones: the probe on the 2024 samples and one housing file (44720372263), and the 2024 samples' exports kept against main for row 5 (44720380479). If rows 1, 2, 3 and 6 hold there and row 8 needs no read, the probe runs on every file and a full Measure follows (nordic, r2025, samples, holdout, every scorer, exports kept) for rows 1 to 5 and 7.

What each outcome means.

  • If row 1 fails, the faces whose points stand off are read first: whether an edge did not qualify, whether its refinement failed (where two cylinders of one radius meet, the solve can find no slope), or whether the faces' own strip points part between the shared ones.
  • If row 2 fails, the body that lost its mesh or gained a refusal is read first, from its new reason.
  • If row 6 fails on a body, that body is read first, as on the straight-line rule: which of its vertices moved, and whether the misses lie on the triangles they are corners of.
  • If any other pair rises, or a body moves that no cylpair line lists, that body is read first.
  • If rows 1 to 7 hold and row 8 needs no read, a report and a changelog fragment follow and the change goes for review.

@DrunkOnJava DrunkOnJava changed the title fix(saved-graphics): two cylinders draw an edge they share straight between its saved points, so the two faces meet (#2104) fix(saved-graphics): an edge two cylinder faces share takes the points where the two cylinders meet, held by both faces, so the faces meet (#2104) Nov 20, 2026
@DrunkOnJava

Copy link
Copy Markdown
Owner Author

The cheap runs of ed2d342d, read against the rows: rows 1 to 3 hold, row 6 fails, row 8 was read. The full runs go ahead anyway, because the decision to land or not needs their numbers on the models Revit scores: the probe on every file (44730930391) and the full Measure (44730938605).

  • Row 1, holds on the 11 files read (probe run 44720372263: one housing file and the 2024 samples). No boundary vertex between two cylinders is left over 0.001 ft: Snowdon Towers HVAC's 1,152 go to 0, the largest now 0.000098 ft, and Snowdon Towers Architectural's 604, Plumbing's 378, rac_basic's 144 and the housing's 72 go to 0 too.
  • Row 2, holds as far as read. No body the probe reads is newly refused or changes its refusal, none appears or disappears, and no face count changes. Every diagnostics.json is identical on run P's 11 files and run 44720380479's 16. ifc_body_diff.py's part waits for the full Measure.
  • Row 3, holds. No other pair of surfaces gains a vertex over 0.001 ft, and no body gains one.
  • Row 6, fails, against Revit's IFC4 export of Snowdon Towers Architectural on run 44720380479's exports, with row5.py at 106bef91. 62 bodies move. Revit's vertices beyond 0.001 ft go from 23,243 to 23,511, and beyond 0.01 ft from 8,806 to 8,809. The straight-line rule gave 23,949 over its 53 moved bodies. The bodies worse than on main fall into three groups:
    • 23 by Revit's count beyond 0.001 ft: 21 Toilet-Domestic-3D, from 308 to 320 each (the straight-line rule gave 333), and 1135932 (Sink-3 Basin) and 1135933, from 770 to 778 and from 524 to 532. That is the whole rise of 268. The farthest Revit vertex is unchanged on each.
    • 2 by Revit's count beyond 0.01 ft: two Railing:Handrail - Pipe, from 4 to 6 and from 8 to 9, the farthest from 0.01017 to 0.01033 ft. On main both are already 1.23 and 1.25 of Revit's volume.
    • 20 by rvt-rs's farthest vertex, still within 0.001 ft: 19 bodies (the 4 checked are Crown Molding - Cabinets, of which 19 move), from 0.00047 to 0.00072 ft, where Revit's farthest vertex from rvt-rs's surface comes in from 0.0005 to 0.00014 ft; and a broiler, from 0.000002 to 0.00088 ft, where Revit's stay within 0.000002 ft. Why rvt-rs's farthest vertex moves out on them is not read.
  • Row 8, read. The probe's triangle totals grow by 1.29 on rme_advanced 2024, 1.35 on rme_basic 2024 and 1.24 on Snowdon Towers HVAC, and by 1.10 or less on the other files. On rme_basic, 226 of the probe's 243 bodies grow, by a median 1.34. The four largest of HVAC's 60 tees go from 680 to 1,280 triangles each. The refinement stops at 0.00025 ft (EDGE_SAGITTA, the plane path's). The exports grow by at most 6 MiB (rme_basic 106 to 112 MiB, rme_advanced 102 to 107). Snowdon Towers Plumbing's goes from 129 to 134 MiB; it was already past the 120 MiB Measure validates on main (Measure skips validating exports over 120 MiB, and Snowdon plumbing passes that once #2102 lands #2103).

What is read of row 6's misses, and what is not. On the two bodies read (a toilet and 1135932):

  • All 20 newly missed Revit vertices lie near a vertex main does not hold, at a median 0.0026 to 0.0030 ft.
  • On the toilet, the head triangle nearest each of the four read has all three corners new, and is 0.63 ft long and 0.0053 ft wide; main's there is 0.016 ft wide.
  • Revit's own mesh is welded there: none of the 20 is on an edge only one triangle holds.
  • They are not at main's vertices; the nearest is 0.009 to 0.015 ft away.
  • The edge's saved points lie on both cylinders within 0.000001 ft on every 2024 sample, and within 0.00009 ft on RE1 Architecture (44727344384, probe_2104_pair_edges at 57e5c29a). So the saved points are where the two cylinders meet.

Why those Revit vertices stand off rvt-rs's surface near the new points is not read.

Whether this lands with row 6's rise on record, or main keeps its gaps, is Griffin's call. It goes to him with the full runs' numbers on the scored models.

@DrunkOnJava

Copy link
Copy Markdown
Owner Author

The full runs of ed2d342d, read against the rows: rows 1 to 4 and 7 hold, row 5 fails on one family row, row 6 failed on the cheap runs, row 8 was read. The probe on every file (44730930391) and the full Measure (44730938605: nordic, r2025, samples, held-out, every scorer, exports kept).

  1. Holds on all 77 files the probe reads. No boundary vertex between two cylinders is left over 0.001 ft on any of them. The 13 files that had one on main go to 0: Snowdon Towers HVAC's 1,152, Architectural's 604, Plumbing's 378, rac_basic's 144 on each of five years, 72 on each of four housing files and 28 on RE1 Architecture.

  2. Holds. All 102 diagnostics.json Measure writes are identical, so on those files no refusal reason rises and no saved mesh is lost; 18 of the 120 exports have none, the held-out one that differs among them. In the probe, the same 5,927 bodies are read on base and head across the 77 files, and none is newly refused, changes its refusal or changes its face count.

  3. Holds. No other pair of surfaces gains a vertex over 0.001 ft, and no body gains one.

  4. Holds on the kept exports. On the 30 kept exports that differ, 2,818 bodies change, and every one is a body the probe lists on a cylpair line (4,605 bodies on 41 files). The held-out AA Single Dwelling House export also differs; it is not kept, so which of its bodies move is not read.

  5. Fails on one family row. No psets_vs_ifc, qtos_vs_ifc, saved_meshes_vs_ifc or roof_bodies_vs_ifc line moves. Of the 10 count rows in the diff, two move in a count, both on RE1 Architecture's IfcFlowTerminal, whose class row stays level; the other eight move only in their median volume ratio:

    • Toilet, Two Piece leaves the 0.01 ft column: rvt-rs's farthest vertex from Revit's surface goes from 0.0084 to 0.0130 ft, while Revit's vertices stay within 0.0040 ft of rvt-rs's surface.
    • Shower Head, Hand Held Sprayer enters it, from 0.0101 to 0.0091 ft.

    Lines that move without a count:

    • Housing railings, paired by element: the volume ratios grow: Railing:KJO-2 from 1.1985 to 1.2057 (Revit's vertices from rvt-rs's surface 0.0079 to 0.0081 ft), KJO-1 from 1.1989 to 1.2042, KAI-7 from 1.0886 to 1.0916 and KD-1 from 1.0895 to 1.0901. KJO-2 stays explained by Revit's inscribed end faces. Four KJO-1 bodies on the concrete as-built file enter the shells the scorer reads, as "the end faces' area ratios disagree" (1.2042 against 1.2023), so the outliers explained by inscribed end faces go from 12 to 8 of 16 there, and from 16 to 9 of 19 on the timber as-built file. On the terrain concrete file they go from 0 to 2 of 12.
    • Housing downspouts (Syöksytorvi): rvt-rs's farthest vertex from Revit's surface comes in, from 0.0076 to between 0.0069 and 0.0073 ft.
    • Housing stairs: on 7 stair bodies, Revit's vertices lie at most 0.0081 ft from rvt-rs's surface, against 0.0079, and the volumes grow by under 0.04 per cent.
  6. Failed on the cheap runs, as read there. On Snowdon Towers Architectural, 45 of the 62 bodies that move are worse than on main: 23 by Revit's vertices beyond 0.001 ft of rvt-rs's surface (from 23,243 to 23,511 in all), 2 railings by Revit's vertices beyond 0.01 ft, and 20 by rvt-rs's farthest vertex, still within 0.001 ft.

  7. Holds. The same-project gates pass on ed2d342d.

  8. Read. On 13 files the probe's triangle total grows by more than 10 per cent:

    • rme_basic: 1.35 on each of five years;
    • rme_advanced: 1.29 on each of four;
    • the two terrain housing files: 1.30 (1,160 to 1,512);
    • RE1 Plumbing: 1.25;
    • Snowdon Towers HVAC: 1.24.

    The exports grow by at most 6.6 MiB (rme_basic 2024, 106.0 to 112.7), and none of the 30 that change crosses 120 MiB. Two were already over it on main (Measure skips validating exports over 120 MiB, and Snowdon plumbing passes that once #2102 lands #2103): Snowdon Towers Plumbing's goes from 129.9 to 134.2 MiB and Architectural's from 292.2 to 293.7.

Why the toilets fit worse, on either file, is not read. Whether this lands with rows 5 and 6 on record, or waits for that reading, goes to Griffin now, and his answer will be posted here.

@DrunkOnJava

Copy link
Copy Markdown
Owner Author

Griffin's call: this lands now, with the fit loss on record, and its cause is read next. He chose that over fixing the fit before landing. So, in order:

  • a report and a changelog fragment that state what the full reading measured: every crack between two cylinders closed on the 77 files read, row 5's Toilet, Two Piece on RE1 Architecture, row 6's 45 of 62 bodies on Snowdon Towers Architectural, and row 8's triangle cost;
  • an issue for why those bodies fit Revit's export worse, which is read next;
  • then this pull request goes ready, runs full CI, and lands.

One correction to that reading: its "12 to 8 of 16" and "16 to 9 of 19" are the scorer's summary lines. Only the four KJO-1 bodies entering the concrete file's readings were paired by element; which bodies left them was not read.

…wo cylinders meet; its changelog fragment and reconnaissance entry (#2104) (#2107)
@DrunkOnJava
DrunkOnJava marked this pull request as ready for review November 20, 2026 16:48
@DrunkOnJava

Copy link
Copy Markdown
Owner Author

Read since, on #2111: row 5's toilet leaving the 0.01 ft column was the scorer's 400-vertex sample (#2114), and on the bodies read row 6's count moved with the triangulation; whether that is a worse fit is not shown (the reading, as corrected). RE-495 and its changelog entry are corrected in #2115.

DrunkOnJava added a commit that referenced this pull request Nov 20, 2026
…rtex sample, and on the bodies read row 6's count moved with the triangulation (#2111) (#2115)

## Summary

RE-495, its changelog entry and its reconnaissance addendum recorded
#2107's two failed rows as a fit loss. Read since with every vertex
([#2111](#2111 (comment))):
row 5's RE1 toilet leaving the 0.01 ft band was `mesh_bodies_vs_ifc`'s
400-vertex sample (#2114), and row 6's rise in Revit vertices beyond
0.001 ft moved, on the bodies read, with the triangulation at a
threshold equal to the chord bound, shown neither as a fit loss nor as a
finer mesh. This adds a dated §5 to RE-495 and rewrites the two
summaries to match; the record of what was measured at landing stays.

## Motivation

The entries go out in 0.26.0 and should not call a sampling shift and a
moved triangulation a fit loss.

## Changes

- `reports/element-framing/RE-495-cylinder-pair-edges.md`: the status
line points to a new §5, "Read after landing".
- `changelog.d/fixed/2104-cylinder-pair-edges.md`: the cost sentence.
- `docs/format-reconnaissance.md`: RE-495's addendum.

## Testing

N/A: docs only. `python3 tools/release/changelog.py check` passes. The
figures are #2111's reading, whose tools are archived on
`refs/archive/2026-11-20/measure-2111-reads`.

## Audit-honesty checklist

- [x] What is read and what is not are both stated; the landing-time
record is kept.
- [x] No private paths.

## Legal and contribution hygiene

- [x] Apache-2.0; no Autodesk proprietary content.

## Breaking changes

None.
DrunkOnJava added a commit that referenced this pull request Nov 20, 2026
…ound, and the percentages name the files they are read on (#2111)
DrunkOnJava added a commit that referenced this pull request Nov 20, 2026
…alf the faces' chord, not a quarter, for fewer triangles (#2111) (#2116)

## Summary

#2111's change for the triangle cost of #2107, which Griffin chose over
keeping #2107's finer edge (2026-11-20). #2107 refines an edge two
cylinder faces share until the chord between neighbouring points is
within `EDGE_SAGITTA` (0.00025 ft), a quarter of the 0.001 ft chord the
cylinder faces are meshed to. This refines that edge to half the faces'
chord (0.0005 ft); the edges a cylinder shares with a plane keep
`EDGE_SAGITTA`. At the faces' whole chord (`42cf34ad`, the first
commit), two downpipes on each BIM4LCA housing file reopened past 0.001
ft, so the bound was halved (`ae2d0d91`). The rows and their reading are
on #2111: [the
rows](#2111 (comment)),
[row
8](#2111 (comment)),
[the second
bound](#2111 (comment)).

## Motivation

#2111: #2107 grew the triangle totals of the bodies with such edges by
up to 1.35 on the plumbing and HVAC samples (RE-495). [Read
since](#2111 (comment)),
on the three faces measured, #2107's narrower strips lie nearer the true
cylinder.

## Changes

- `src/research/native_saved_mesh.rs`:
- `EdgeLimits` carries the chord bound (`sagitta`);
`bisect_crossing_edge` reads it in place of `EDGE_SAGITTA`.
- `refined_cylinder_pair_edge` passes half the cylinder profile's chord;
every other caller passes `EDGE_SAGITTA`.
- `refined_cylinder_pair_edge`'s doc comment no longer says a refinement
error refuses nothing; the cylinder's point budget does refuse.
- `reports/element-framing/RE-496-pair-edge-half-chord.md`,
`changelog.d/changed/2111-pair-edge-half-chord.md`,
`docs/format-reconnaissance.md`, and RE-495's §5: the docs commits,
which also correct the code comment's count of downpipes and give
#2107's changelog entry its cost at this bound. The same-project gates
passed on `ae2d0d91`, which holds every code change; the last commit
changes only that comment in `src/`.

## Testing

Unit tests are banned in this repository. Every row holds at half the
chord ([the
reading](#2111 (comment))):
the probe
([44801424565](https://github.com/DrunkOnJava/rvt-rs/actions/runs/44801424565))
keeps every boundary vertex between two cylinders within 0.001 ft on the
77 files it reads; over the 1,492 graphs holding a cylinder pair, the
cylinder triangles go from 1,682,972 to 1,500,882 (1,385,188 before
#2107), counting each graph once. The cost: the farthest standoff rises
on 147 graphs, by at most 0.000318 ft, within 0.001 ft. The full Measure
([44807747546](https://github.com/DrunkOnJava/rvt-rs/actions/runs/44807747546))
finds 102 `diagnostics.json` identical, no `psets_vs_ifc` or
`qtos_vs_ifc` line moving, only the bodies with a cylinder pair
changing, and the same-project gates passing on `ae2d0d91`.

## Audit-honesty checklist

- [x] The report (RE-496), the changelog entry and the reconnaissance
addendum follow the runs; RE-495's "not read" list carries the
which-face reading.

## Legal and contribution hygiene

- [x] Apache-2.0; no Autodesk proprietary content (CLEANROOM.md).

## Breaking changes

None: research module internals only.

**Checked with every vertex before landing (#2114):** none of the 40
bodies that move on RE1 Architecture and Plumbing and two BIM4LCA
housing files is worse than with #2107 against Revit's exports (RE-496
§2).

Review: rvtReview, the maintainer session, wrote this change and, as
rvtDevelop is not running, re-reads its diff and approves it itself on a
green head (Griffin, 2026-11-12).
DrunkOnJava added a commit that referenced this pull request Nov 21, 2026
…riangle totals #2107 raised by more than 10 per cent (#2111) (#2117)

## Summary

RE-496, its changelog fragment and its reconnaissance addendum said, in
these words or close to them, that 48 to 100 per cent of the triangles
#2107 added go "on the 13 files where #2107 added the most". Those 13
are the files whose triangle totals #2107 raised by more than 10 per
cent, as [the reading on
#2111](#2111 (comment))
says.

Over every graph, counted once, the figure is 61 per cent (182,090 of
297,784). RE-496 gave it as a count only.

The fragment's standoff rise said "at most 0.0003 ft"; the measured
figure is 0.000318 ft, now written 0.00032.

## Motivation

The phrase went out on #2104 and #2111 too. Those comments are corrected
and marked as edited. This brings the files on `main` into line before
the next release assembles the fragment.

## Changes

- `reports/element-framing/RE-496-pair-edge-half-chord.md`: the Status
line names the 13 files by how they were chosen and adds the 61 per
cent. The §2 table is introduced the same way.
- `changelog.d/changed/2111-pair-edge-half-chord.md`: leads with 61 per
cent, counting each graph once, then the range on the 13 files; 0.0003
becomes 0.00032 ft.
- `docs/format-reconnaissance.md`: the RE-496 addendum's range names the
13 files the same way.

## Testing

Docs only: no code or output changes, and no measured figure changes.
`python3 tools/release/changelog.py check` passes.

## Audit-honesty checklist

- [x] The figures are RE-496's own: the 61 per cent, the 13 files and
the 0.000318 ft come from the probe run
[44801424565](https://github.com/DrunkOnJava/rvt-rs/actions/runs/44801424565),
with the side before #2107 from
[44730930391](https://github.com/DrunkOnJava/rvt-rs/actions/runs/44730930391).
- [x] No emojis, private paths or internal jargon.

## Legal and contribution hygiene

- [x] Apache-2.0. No Autodesk proprietary content. No fixtures.

## Breaking changes

None.

Review: rvtReview, the maintainer session, wrote this change. As
rvtDevelop is not running, it re-reads the diff and approves the change
itself on a green head (Griffin, 2026-11-12).
DrunkOnJava added a commit that referenced this pull request Nov 21, 2026
… body, not a stride of at most 400 (#2114) (#2118)

## Summary

`tools/re/mesh_bodies_vs_ifc.py` now tests every distinct vertex of a
scored body against the other body's surface, both ways, instead of a
stride of at most 400 (#2114).

The stride passed a body whose untested vertex failed a column. Because
added vertices shifted which 400 were tested, it also moved the 0.01 ft
and 0.001 ft columns when a mesh only gained vertices.

The distance is the same exact routine as before (`surface_distance`),
given more points. On byte-identical exports of the 41 models, with only
the scorer changed:
- no count or volume column moves;
- no distance column rises, as a superset of the tested vertices
requires;
- six class rows on six files fall.

## Motivation

Part of #2114, which stays open for the body stride and
`fitting_faces_vs_ifc`.

#2114: on RE1 Architecture the toilet left the 0.01 ft column and the
shower head entered it with #2107, though neither body's farthest vertex
moved. Rows that said "no count of `mesh_bodies_vs_ifc` falls" decided
landings while depending on which 400 vertices were tested.

## Changes

- **`tools/re/mesh_bodies_vs_ifc.py`:**
- `sample` becomes `vertices`: every distinct vertex, sorted as before.
  - `VERTEX_CAP` is gone.
  - The docstrings say every vertex is tested.
- **`tools/re/family_extrusion_bodies_vs_ifc.py`:** its docstring's
"every tested vertex" becomes "every vertex". It runs
`mesh_bodies_vs_ifc.main`.
- **`tools/re/arc_tessellation_study.py`:** calls `vertices` in place of
`sample`.
- **`tools/re/saved_mesh_status_vs_ifc.py`:** imports and calls
`vertices` in place of `sample`, so it tests every vertex too. Neither
Measure nor CI runs it; without this it would fail on import.

Not in this change:
- The per-class stride of 300 bodies by Tag (`CLASS_CAP`, repeated in
`saved_mesh_status_vs_ifc.py`) still shifts which bodies are scored when
a change adds bodies. Changing it moves every class row on the large
models, so it comes in its own PR, through one shared function.
- `fitting_faces_vs_ifc.py`'s stride of 600 vertices per face is its own
code and is not fixed here.
- The `*_across_saves` scripts the same-project gates run have no such
stride.

## Testing

Unit tests are banned in this repository: do not add them.

- [x] **Run.** Measure
[44837755615](https://github.com/DrunkOnJava/rvt-rs/actions/runs/44837755615),
scorers from this branch, code `5a8a451a` (`main`), `nordic`, `r2025`
and `samples`, `scorers=mesh_bodies_vs_ifc`.
- [x] **Baseline.** The head side of
[44807747546](https://github.com/DrunkOnJava/rvt-rs/actions/runs/44807747546)
(`ae2d0d91`, whose `src` differs from `5a8a451a` only in three comment
lines), scored with `main`'s scorer.
- [x] **Exports identical.** All 41 models the scorer reads have the
same `ifc.sha256` on both sides.
- [x] **Rows.** Of the class rows, n and both volume columns are
identical on every file. No 0.01 ft, 0.001 ft or "ref on ours" count
rises. Six rows fall:

  | File | Class (n) | 0.01 ft | 0.001 ft | ref on ours |
  | --- | --- | --- | --- | --- |
| Housing terrain, concrete and timber | `IfcGeographicElement` (21) |
12 → 12 | 1 → 1 | 3 → 2 |
| Office terrain, concrete and timber | `IfcRampFlight` (5) | 5 → 5 | 5
→ 4 | 5 → 5 |
| Office timber, as built | `IfcStairFlight` (2) | 2 → 0 | 0 → 0 | 2 → 2
|
| Office timber, permit | `IfcStairFlight` (5) | 5 → 3 | 3 → 3 | 5 → 5 |

- [x] **Against #2114's every-vertex figures.** On RE1 Architecture, the
toilet (359466) reads 0.01299 ft from rvt-rs to Revit, against 0.01212
ft with the stride. The shower head (369643) reads 0.01007 ft on both.
#2114 read their farthest of all as 0.012989 and 0.010066 ft on #2107's
commits, before #2116.
- [x] **Time, scorer run alone.** The step's wall time from each model's
`timings.log` in 44837755615:
  - the office as built, 43 s to 279 s;
  - the office permit and the timber office, 39 to 71 s to 182 to 192 s;
  - the housing terrain files, 6 s to 105 s;
  - the other housing files, 10 to 17 s to 48 to 50 s;
  - the office terrain files, 3 s to 16 and 17 s;
  - nothing else over 12 s.

- [x] **Time, under full load.** In an unfiltered Measure,
[44839463264](https://github.com/DrunkOnJava/rvt-rs/actions/runs/44839463264),
every scorer runs beside it.
- The exports are byte-identical to the baseline's, and the same six
rows move.
- The slowest mesh step is the office as built, 104 s, against 43 s at
400 vertices in the baseline's full run.
- The other three office files (permit, and the timber office as built
and at permit) and the two terrain housing files take 63 to 81 s; every
other file takes 26 s or less.
  - The step's limit is 2,400 s.
- The step adds about a minute to a shard (up to four at the filtered
run's figures). Between the two runs shard totals moved both ways, and
the slowest shard in both was Autodesk's 2024 to 2027 samples (19 and 26
minutes). That shard has no Revit export, so this scorer does not run
there, and the full run's wall time did not grow in this run.
  - All 41 outputs end in `exit 0`, and none reports a worker dying.

The filtered run was slower than this one on every file, by 1.7 to 2.8
times (279 s against 104 s on the office as built, 105 against 63 on the
terrain housing). Both run one job per CPU (`MEASURE_JOBS`); the cause
is not read.
- [x] **The fine tessellation**, timed once each with the scorer alone
on the BIM4LCA office as built:
[44844099459](https://github.com/DrunkOnJava/rvt-rs/actions/runs/44844099459)
and
[44844102778](https://github.com/DrunkOnJava/rvt-rs/actions/runs/44844102778).
- The step takes 352 s, against 269 s with the stride. The two ran on
different processors, so the difference is not a measured cost, and
neither was timed under full load.
- Of the `fine` class rows, only `IfcWasteTerminal` moves: 0.001 ft and
"ref on ours" 59 → 56. None rises.
  - Both end in `exit 0`.
- **Not run:** `slab_bodies_vs_ifc`, `shading_bodies_vs_ifc` and
`changed_bodies_vs_ifc`, which inherit the change through `main` or
`score_all` and are not in Measure's default set; and
`saved_mesh_status_vs_ifc`.
- [x] Python only: `python3 -m py_compile` on the three files. No Rust
changes.

## Audit-honesty checklist

- [x] Docs reflect the change: the scorer's docstrings. The figures
quoted in older reports and in `docs/support-matrix.json` record what
the scorer measured then, and are left as they were.
- [x] No changelog fragment: a measurement tool, nothing a user of the
crate sees.
- [x] No emojis, private paths or internal jargon.

## Legal and contribution hygiene

- [x] Apache-2.0.
- [x] No Autodesk proprietary content.
- [x] No fixtures.

## Breaking changes

None. `sample` is renamed `vertices`; its other callers,
`arc_tessellation_study.py` and `saved_mesh_status_vs_ifc.py`, are
updated. A search of `tools/` finds no other.

Review: rvtReview, the maintainer session, wrote this change. As
rvtDevelop is not running, it re-reads the diff and approves the change
itself on a green head (Griffin, 2026-11-12).
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