Skip to content

fix(saved-graphics): a surface of revolution or a cone and a plane draw an edge they share across both its parameters straight between its saved points, so the two faces meet (#2098) (RE-493) - #2099

Merged
DrunkOnJava merged 13 commits into
mainfrom
fix/2098-saved-chords
Nov 19, 2026

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Nov 19, 2026 •

Copy link
Copy Markdown
Owner

Summary

Where a plane shares an edge with a surface of revolution or a cone, and the edge crosses both of the curved face's parameters, both faces now draw the edge straight between the points the file saves for it. The plane had been drawn through the curve it cuts from the surface, and the curved face straight in its own parameters, and the two parted by the edge's bow. #2094 gave ruled faces with a spline profile this rule; this takes it to surfaces of revolution and cones. It replaces #2098's change, which narrowed the crack but closed it on no body. This one closes every gap at a plane, though no body's gaps close entirely either: what is left of each lies between two curved faces.

Measured on this change (RE-493): boundary vertices more than 0.001 ft from every other face fall from 3,962 to 2,163, the largest from 0.006017 to 0.002354 ft, and none of those left lies at a plane: what is left is between two curved faces, which this does not touch. No count scored against Revit's exports moves; every body that moves and has a Revit export is one toilet family, on the BIM4LCA office and housing.

Motivation

#2098: on 662 bodies whose saved graphics hold such an edge, 3,962 boundary vertices lay more than 0.001 ft from every other face, up to 0.006 ft. A lever with this rule on every parametric face took that to 2,163 and moved no scorer count. The tally read 1,281 of the 2,163, on three of the nine files, and every one of those lies between two curved faces (results).

Changes

Testing

Unit tests are banned in this repository. Rows registered before any run is read. The lever's rows 9 and 12 held (results).

  • The rule. The candidate is ac956181 on fix/2098-saved-chords: main with feat(saved-graphics): a Hermite spline profile is read and drawn, and a plane meets such a ruled face along the edge's saved points (#2082) (#1191) (RE-311) (RE-492) #2094 landed (69ac3a26, the points tagged as they are made), with feat(saved-graphics): a Hermite spline profile is read and drawn, and a plane meets such a ruled face along the edge's saved points (#2082) (#1191) (RE-311) (RE-492) #2094's rule taken from ruled faces with a spline profile to surfaces of revolution and cones as well. Along an edge a plane shares with such a face, crossing both of its parameters, both faces draw the edge straight between its saved points. A cylinder's side keeps Snowdon Towers Architectural: roofs 1916596 and 964559 stay level blocks (a plane edge across a curved face that is not isoparametric; a cylinder face with several trim loops) #1706's refinement, and a ruled face between plain curves stays as it is.

  • Why these classes. Run H's base side (44556926199) counts each body's crossing edges by the curved face's class. With Run E's base and lever figures for the same bodies, over every model:

    crossing edges on bodies meshed on both newly meshed by the lever over 0.001 ft, base to lever over 0.0001 ft, base to lever meshed on a BIM4LCA file
    surfaces of revolution only 800 636 2 3,962 to 2,163 87,171 to 52,097 196
    cones only 13 13 0 0 to 0 130 to 0 0
    ruled faces only 49 13 0 0 to 0 22 to 22 12
    ruled faces and surfaces of revolution 104 0 0
    surfaces of revolution and cones 128 0 0
  • The cost, accepted. The rule also moves the 60 bodies a rac_advanced save, for no measured gain: they have no boundary vertex over 0.0001 ft on either side. They hold surfaces of revolution only, so no class separates them. With the lever, on the 2024 save (Run F's kept exports, read with tools/re/body_displacement.py, ad80037d on measure/2094-far-vertices), they are 60 furniture bodies that move alike, moved by at most 0.0000774 ft: the farthest a vertex of the base's body lies from the lever's surface. The other way it is 0.0000012 ft.

  • The branches. The candidate with the probe is ee09811f (measure/2098-cand-probe). The base with the same probe is 6b6df1ad (measure/2098-main-base, main at 69ac3a26). The two differ in src/ by the rule alone, and both sides run fresh. The base side is expected to repeat Run E's base side: 1,094 bodies, 662 meshed on both, 3,962 vertices over 0.001 ft, the largest 0.006017 ft, 5,894,559 triangles. Run H's earlier base side on #2094's branch gave exactly those, and main's other two commits since change landing names and a progress stage, not meshes. If it does not, the difference is read before the candidate's side.

Run H, probe_2098_face_cracks on both, on the models Run A2 read (nordic, r2025, samples).

  1. The lever's figures, again. The candidate is the lever's rule less plain ruled faces, on the tagging mesher. Over the bodies meshed on both sides it is expected to give Run E's lever figures:

    • 2,163 boundary vertices more than 0.001 ft from every other face (987 on Snowdon Towers Architectural, 258 on each office file, 36 on each housing file), the largest 0.002354 ft;
    • no body gaining one;
    • in the tally, no vertex between a plane and a curved face on any model (for the six files the lever's tally did not read, a first reading, not a replication);
    • Plumbing at 0 over 0.0001 ft and Structural at 124.

    Any figure that differs means the tagging mesher and the search differ on these faces, or a plain ruled face mattered after all. The faces where it differs are read before anything else.

  2. Nothing newly refused, as the probe sees it. No body meshed on the base is refused on the candidate; the two bodies the lever newly meshed on Snowdon Towers, which hold surfaces of revolution only, are expected to be meshed again; and the same models print a total line.

  3. Triangles: expected 5,857,140 over the bodies meshed on both sides, the lever's figure. Not above the base's 5,894,559.

Run I, a full Measure of ac956181 against 69ac3a26 (nordic, r2025, samples, holdout, exports kept; the kept exports are fetched as shard zips). Run I2, far_vertices_vs_ifc (ad80037d on measure/2094-far-vertices, which prints every body's farthest vertex both ways, so a terminal under the bars still shows) on both probe branches on the eight BIM4LCA files. Both are dispatched once Run H is read.

  1. No scorer count crosses a bar away from Revit, and no toilet's surface moves away.
    • In mesh_bodies_vs_ifc, saved_meshes_vs_ifc, roof_bodies_vs_ifc and stair_bodies_vs_ifc, no class's "ref on ours", "0.001 ft" or "0.01 ft" count falls, and no body leaves a volume bin it was in; rises are reported too. No psets_vs_ifc or qtos_vs_ifc line moves.
    • The set. Those counts did not move with the lever, so the row is also held to the sanitary terminals whose body changes in Run I's body diff on the eight BIM4LCA files. Their number is reported.
    • Revit's vertices against rvt-rs's surface (the direction of "ref on ours"; on 1762910, 96 of 793 beyond 0.001 ft, the farthest 0.00501 ft, in 44556888939 on feat(saved-graphics): a Hermite spline profile is read and drawn, and a plane meets such a ruled face along the edge's saved points (#2082) (#1191) (RE-311) (RE-492) #2094's branch). On every terminal of the set, the count beyond 0.001 ft does not rise, and the farthest does not rise by more than 0.0001 ft. With the lever these did not move on the five toilets a housing file that could be paired.
    • rvt-rs's vertices against Revit's surface. The row fails if any terminal of the set moves more than 0.001 ft further away, the scorers' vertex bar. The lever moved the housing toilets' farthest by -0.0006 to +0.00095 ft, so they would pass by 0.00005 ft; the office terminals, which could not be paired under the lever, are where it can fail. Each terminal's counts beyond 0.01 and 0.001 ft are listed before and after.
    • What this tests. The meshed BIM4LCA bodies hold surfaces of revolution only, so row 4 tests that class alone. Cones rest on Plumbing, unscored.
  2. Nothing newly refused. No refusal reason in any diagnostics.json rises.
  3. As they come:
    • which exports move, by model, and whether each is on a model where Run H lists a body;
    • the bodies that move by class on the eight BIM4LCA files (ifc_body_diff.py), with the same per-body read for any class but sanitary terminals that Revit exports, or a statement that it is not read;
    • on the samples, the 2023 save of rac_advanced included, how many bodies move against how many Run H meshes there. On Snowdon Towers Architectural that is expected to be 138 and the 2 newly drawn, against the lever's 139: 2181762 should not move;
    • how far the rule moves the bodies it moves: the farthest a vertex of a moved body lies from the same body's surface on the other side, both ways, from the kept exports with body_displacement.py, rac_advanced first and counted by distinct shape. Expected on rac_advanced, the lever's 0.0000774 ft. The bar is the scorers' 0.001 ft: a body moved further than that is read before the change lands. This is what the accepted cost rests on;
    • whether the same-project gates pass, and which gate figures move;
    • whether a held-out export moves.

Results: read against the rows. Rows 1 to 5 hold, and row 6's moves over the 0.001 ft bar are read there.

What each outcome means, written before the runs.

  • If rows 1 and 4 hold, this pull request is marked ready, with its changelog fragment and its report.
  • If row 1 differs from the lever, the faces where it differs are read first.
  • If row 4 fails, the terminals that fail it are read face by face. Every meshed office and housing body holds surfaces of revolution only, so narrowing by class there would drop the class where every closed gap was. A failure is reported as one, and the candidate does not land until a rule that passes is found.

Audit-honesty checklist

  • The changelog fragment and the report (RE-493) follow the Measure.
  • Self-approved: this is the maintainer's own pull request, with no second reader running. Before approving, the whole change was re-read against 69ac3a26: keeps_saved_chords and its comment, the plane side's comment, RE-493, its addendum and fragment, and the RE-492 sentence. The same-project and semantic verdicts on ac956181 stand for the head, which adds docs only (a8a9fc43).

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.

…a surface of revolution is read and evaluated, and its grid cut to its curvature (#1191) (RE-311)

A practitioner's 270 MB Revit 2024 building-services model (#2082) keeps
424 elements as boxes for an unsupported GHermiteSpline profile curve, the
largest single reason it reports, and the open models Measure reads hold
it too (the BIM4LCA office 19 elements a file, the housing 6, RE1
Electrical 2).

RE-311 read the layout on 2026-11-03 (m_NodeArray of m_iParametr, m_iPoint
and m_iTangent, the tangent per unit of parameter) and evaluated it at
64b2cff, archived as refs/archive/2026-11-03/re311-spline-profiles; it was
not landed because no body with a Revit export of its own gained a mesh
then. This ports the Hermite half onto today's reader: Curve::Hermite with
its cubic segments, their analytic derivative, a periodic spline refused,
and the profile cut into the equal steps its largest second difference
asks for to hold the 0.001 ft chord (at most 128), on a surface of
revolution and on a ruled surface. m_Periodic and m_iParametr join the
saved-graphics field list. The NURBS half of 64b2cff is left out: no
reason of the open models or of #2082 names it.

Claude-Session: https://claude.ai/code/session_01NCFPVqpXUmLDmXf35nPPeP
(cherry picked from commit 8be0d5b)
… face, crossing both its parameters, both faces draw it straight between its saved points (#2094)
…nd a plane meets such a ruled face along the edge's saved points (#2094) (RE-492)
… it is made on, so putting a ruled face's points on its saved points' lines reads each point once and needs no budget (#2094)
…one, and RE-492, its fragment and the docs say what the Measure read (#2094) (RE-492)
…ouse's counts and what the ramps show of the placement (#2094) (RE-492)
…by halving its nodes, so a face's grid costs its points times the log of the nodes, not their count (#2094)
… a public item's doc may not link a private one (#2094)
…aw an edge they share across both its parameters straight between its saved points, so the two faces meet (#2098)
# Conflicts:
#	src/research/native_parametric_mesh.rs
#	src/research/native_saved_mesh.rs
@DrunkOnJava

Copy link
Copy Markdown
Owner Author

Runs read against the rows.

  • Run H: 44579061107, probe_2098_face_cracks on ee09811f and 6b6df1ad.
  • Run I: 44588392591, ac956181 against 69ac3a26, with nordic, r2025, samples and holdout, exports kept.
  • Run I2: 44588403341, far_vertices_vs_ifc at ad80037d on both probe branches, on the eight BIM4LCA files.

The base side repeats Run E's base side: 1,094 bodies, 662 meshed on both, 3,962 vertices over 0.001 ft, the largest 0.006017 ft, 5,894,559 triangles.

  1. Holds.
    • 2,163 boundary vertices over 0.001 ft from every other face: 987 on Snowdon Towers Architectural, 258 on each office file and 36 on each housing file. The largest is 0.002354 ft.
    • No body gains one.
    • In the tally, summed over the nine files with tally lines, the 2,163 are 1,260 between two surfaces of revolution, 588 between two cylinders and 315 between a cylinder and a surface of revolution; none lies at a plane. The base side's 1,799 at a plane are the ones that close.
    • Plumbing has 0 vertices over 0.0001 ft, and Structural 124. No cone gap was over 0.001 ft on either side, so cones show only in Plumbing's 130 to 0, on a sample with no Revit export.
    • The tagging mesher gives the lever's figures exactly.
    • No body's gaps over 0.001 ft all close: 0 of the 217 that had any.
  2. Holds.
    • No body meshed on the base is refused on the candidate.
    • Snowdon Towers' 2110101 and 2110417, which hold surfaces of revolution only, are meshed again.
    • 71 models print a total line on both sides.
  3. Holds. 5,857,140 triangles against the base's 5,894,559.
  4. Holds.
    • No scorer count moves. In mesh_bodies_vs_ifc, saved_meshes_vs_ifc, roof_bodies_vs_ifc and stair_bodies_vs_ifc, only mesh_bodies_vs_ifc's list of farthest bodies changes. No psets_vs_ifc or qtos_vs_ifc line moves.
    • The set. The sanitary terminals whose body changes are 6 on each housing file and 43 on each office file, 196 in all, and Run I2 pairs all 196. They are one toilet family, WC-istuin:WC-1: the six moved tags of a housing file carry that name, and each office file's 43 moved are its 43 of that family. Their point lists differ (4 distinct among a housing file's 6, 8 or 9 among an office file's 43), and the largest move is the same on every file. So everything checked against Revit here is one family, on two BIM4LCA buildings.
    • Revit's vertices against rvt-rs's surface. On all 196, the count beyond 0.001 ft and the farthest are unchanged.
    • rvt-rs's vertices against Revit's surface. On all 196, the counts beyond 0.01 and 0.001 ft and the farthest are unchanged by far_vertices_vs_ifc, which is the scorer this row is judged on. Two things change on each: it has 96 fewer vertices, and in the breakdown of its vertices beyond 0.001 ft, some move between crease and smooth within one facing of Revit's, since different triangles now meet at them. Each body's count beyond 0.001 ft and its split by Revit's facing are unchanged.
    • The other scorer disagrees. mesh_bodies_vs_ifc gives the housing toilets' "rvt-rs's to Revit's" a rise of up to 0.00095 ft. On the base side alone, it already gives instances of one toilet 0.02049 and 0.02109 ft, where far_vertices_vs_ifc gives all of them 0.021585 ft. So its 0.00005 ft margin under the bar is not read as evidence either way; by either scorer the rise is under the 0.001 ft bar.
  5. Holds.
    • No refusal reason in any diagnostics.json rises. Only Snowdon Towers Architectural's changes: surface coordinates outside envelope 2 to 0, the two bodies above.
    • The same-project gates pass on ac956181, with 15 samples held to their earlier saves.
  6. As they come.
    • Exports that move. 16 of 120, each on a model where Run H lists a body: the eight BIM4LCA files, rac_advanced 2023 to 2027, and Snowdon Towers Architectural, Plumbing and Structural. No held-out export moves.
    • Bodies that move on the BIM4LCA files (ifc_body_diff.py, all eight): 6 on each housing file and 43 on each office file, all IfcSanitaryTerminal. None changes BodySource, and none is newly drawn or dropped.
    • On the samples (ifc_body_diff.py on the 2024 saves):
      • Snowdon Towers Architectural: 138 bodies' meshes change, and the 2 bodies newly drawn (IfcFurniture, from their record box to saved graphics), as expected. The lever moved 139, so the count says the plain ruled body 2181762 does not move; the diff lists only the first 20 ids, so that rests on the count.
      • rac_advanced 2024: 60 bodies move, all IfcFurniture, as with the lever. None changes BodySource.
    • How far the rule moves the bodies it moves (tools/re/body_displacement.py on measure/2094-far-vertices, both ways: at ad80037d for four BIM4LCA files and rac_advanced, and at dab3b0f7, which measures each before-and-after shape once, for the other four and Snowdon Towers):
      • The toilets move by at most 0.00112 ft (0.000340 m), the same on all eight files: every body on three (the concrete housing as built and at permit, the office as built), each distinct shape on four (the timber housing at permit, the office at permit, the timber office as built and at permit), and 2 of the 6 on the timber housing as built, read before that run was stopped. That is over the 0.001 ft bar, so I read them. By far_vertices_vs_ifc their counts beyond 0.001 and 0.01 ft of Revit's surface are unchanged, in total and by facing, and so is the farthest both ways. Their largest gap at a plane on the base side was 0.001145 ft on the two files read for it (the concrete housing and the office, as built), so the move is that gap closing.
      • rac_advanced 2024: its 60 move by at most 0.0000774 ft one way and 0.0000012 ft the other, the lever's figures to the digit.
      • Snowdon Towers Architectural (measured once per shape): its 138 are 26 distinct shapes, 18 of IfcSanitaryTerminal and 8 of IfcFurniture. Six toilet shapes, 21 bodies, move by up to 0.00152 ft, over the bar, so I read them. They are the run's widest cracks: 0.006017 ft on the base side, closed to 0.002354 ft, with their boundary vertices over 0.001 ft from every other face falling from 113 to 115 a body to 47. So the move is the crack closing, within its width. Every other shape moves by at most 0.00026 ft. No Revit export of the samples exists to set them against.
    • Snowdon's schema. Its placement composition count of swept solids goes from 2,136 to 2,134, the two newly drawn bodies.

@DrunkOnJava DrunkOnJava changed the title fix(saved-graphics): a surface of revolution or a cone and a plane draw an edge they share across both its parameters straight between its saved points, so the two faces meet (#2098) fix(saved-graphics): a surface of revolution or a cone and a plane draw an edge they share across both its parameters straight between its saved points, so the two faces meet (#2098) (RE-493) Nov 19, 2026
@DrunkOnJava
DrunkOnJava marked this pull request as ready for review November 19, 2026 22:15
@DrunkOnJava
DrunkOnJava merged commit 4e05cfb into main Nov 19, 2026
63 checks passed
@DrunkOnJava
DrunkOnJava deleted the fix/2098-saved-chords branch November 19, 2026 22:29
DrunkOnJava added a commit that referenced this pull request Nov 20, 2026
…le, two regions or a seamless tube, is meshed (#1191) (#2102)

**On the full Measure, rows 1, 3, 4 and 5 hold. Row 2 fails only on the
BIM4LCA offices' 30 `Stay_Wall_Mounted_:VAR-1` grab bars a file, which
Revit's own export draws as a square along their legs
([read](#2102 (comment))).
They ship drawn round, as the file saves them, with that miss on record
(decided 2026-11-20). Report: RE-494.**

## Summary

A cylinder face bounded by two trim loops on part of a turn is now
meshed strip by strip (`band_mesh`). Before, the saved-graphics mesher
took one trim loop on a cylinder and refused any face with two as
`multiple cylinder trim loops unsupported`. Two loops making a full
turn, and three or more loops, are still refused. The code is as at
`d46bfeff`; the commits after it add the report, the changelog fragment
and the docs.

A full Measure of `1ab9c54e` against main `4e05cfb0`
([44649733126](https://github.com/DrunkOnJava/rvt-rs/actions/runs/44649733126):
nordic, r2025, samples, holdout, every scorer, exports kept) moves 27 of
120 exports. On 22 of them, bodies that were record boxes are now drawn
from their saved meshes: 1,289 on the exports kept, and 10 on the
held-out house. On the other five, the rac basic samples, only refusal
texts move (row 4). The bodies newly drawn:
- `IfcFurniture`: 30 on each BIM4LCA office file, all
`Stay_Wall_Mounted_:VAR-1`. **Row 2 fails on all 30**: 1.11 of Revit's
volume, rvt-rs's points up to 0.0116 ft off Revit's surface.
- `IfcDoor`: 4 on each BIM4LCA housing file (`O-5:O-5.9x21sauna`) and 10
on the held-out house. **All pass row 2**: within 0.01 ft both ways and
within 1 per cent of Revit's volume.
- `IfcPipeFitting` (48 and 87) and one `IfcBuildingElementProxy` on
Autodesk's rme basic and advanced samples in every year they exist, 2023
to 2027.
- Snowdon Towers 2024: 404 `IfcAirTerminal` and 36 `IfcDuctFitting`
(HVAC), 108 `IfcSanitaryTerminal` (plumbing), 5
`IfcBuildingElementProxy` (`Trash Chute`), an `IfcColumn` and an
`IfcElectricAppliance` (architectural), and an `IfcLightFixture`
(electrical). Revit has no export of these in Measure; how they were
read is below.

The grab bars fail because Revit's export draws the round bar with a few
large flats. Along the legs it uses a square whose corners lie on
rvt-rs's round (radius 0.0110 m). On the U-bend it uses straight pieces
whose ends lie on that round. Both of Revit's shapes for them, 15 bodies
each, read the same. Revit writes those flats itself
(`IfcPolygonalFaceSet`), so they are not IfcOpenShell's tessellation.

`d46bfeff` removes the full-turn reader, `tube_trim`, which no face on
any file read took. A byte-identity Measure of it against `1ab9c54e`
([44660808578](https://github.com/DrunkOnJava/rvt-rs/actions/runs/44660808578):
nordic, r2025, samples, holdout) leaves 120 of 120 exports and 102 of
102 `diagnostics.json` identical.

## Motivation

#1191 (W6). A census of `box_bodies_vs_ifc` over the models with Revit's
own export (Measure
[44589336915](https://github.com/DrunkOnJava/rvt-rs/actions/runs/44589336915),
head side, `5e36af9f`, before #2099) counts, for each refusal reason,
the bodies whose refusal names it alone. That is a lower bound of what
each reason blocks: a face's first failing stage hides the ones behind
it. `multiple cylinder trim loops unsupported` is the largest such
reason Revit's exports can check: named alone by 136 bodies, 30 on each
BIM4LCA office file and 4 on each housing file.

Probe runs said which shape those faces are:
-
[44638585587](https://github.com/DrunkOnJava/rvt-rs/actions/runs/44638585587):
none on the office or the housing is a tube. Every such face's envelope
covers part of a turn.
-
[44639888934](https://github.com/DrunkOnJava/rvt-rs/actions/runs/44639888934):
on the housing's 4, each pair of loops is a hole inside the other loop;
on the office's 30, holes and two separate regions.
-
[44659164312](https://github.com/DrunkOnJava/rvt-rs/actions/runs/44659164312)
(`probe_2102_cylinder_loops` at `6327fb09`, every 2024 to 2027 sample):
every two-loop cylinder face covers part of a turn (1 to 51 faces a
file), so none takes the full-turn path. 13 faces on each rme advanced
and basic file and 3 on Snowdon architectural have three loops, and 2 on
each rac advanced file have ten; all are still refused.

## Changes

- `src/research/native_saved_mesh.rs`: `cylinder_face` reads a second
trim loop. If the two make a full turn it refuses them as `two cylinder
trim loops on a full turn unsupported`; otherwise it reads both rings
closed and meshes them with `band_mesh`. `band_mesh` takes the strips
across U, whose edges fall on every ring point, so each ring edge
crosses a strip whole or not at all. It covers each strip between its
crossings taken in pairs by height, which is a hole and separate regions
alike. The face's points are both rings', so the plane beside it
rebuilds the same steps (`refined_plane_edge`). Three or more loops are
still refused.

## Testing

Unit tests are banned in this repository. **Rows registered before any
run is read.** The registration below is as written before the full
Measure ran; each row's result follows it. A third probe run on the same
two files
([44641101362](https://github.com/DrunkOnJava/rvt-rs/actions/runs/44641101362),
`42a94918`) was read for one question: are the bodies that named the
reason alone drawn now? They are, and row 2 fails on the office
([read](#2102 (comment))),
so no full Measure is run until those bodies are read face by face. The
rows below are judged on a full Measure of the head that settles
(nordic, r2025, samples, holdout, every scorer, exports kept).

1. **Nothing scored moves away from Revit.** In `mesh_bodies_vs_ifc`,
`saved_meshes_vs_ifc`, `roof_bodies_vs_ifc` and `stair_bodies_vs_ifc`,
no class's "ref on ours", "0.001 ft" or "0.01 ft" count falls, and no
body leaves a volume bin it was in. No `psets_vs_ifc` or `qtos_vs_ifc`
line moves.
    - **Result (full Measure):**
- **Holds.** No class count falls on any model. The only family lines
that leave `mesh_bodies_vs_ifc` are pushed off the end of its list of
the largest families by the new ones (`PK-1:PK-1.3800` on the offices,
`UO-3` and `UO-4` on the housing). No `psets_vs_ifc` or `qtos_vs_ifc`
line moves. `door_bodies_vs_ifc` moves 4 housing doors from "mirror rule
wrong" to "rvt-rs's box is Revit's".
- `schema.txt` moves on 21 models. On each, the count of swept solids
placed apart from their product falls by exactly the number of bodies
newly drawn there. On Snowdon plumbing the export grows from 112 MiB to
130 MiB, past the 120 MiB Measure validates (#1532), so Measure skipped
it. Read locally with IfcOpenShell 0.9.0.post1 as Measure reads it
(`tools/ci/ifc_validate_summary.py --both`): 0 validation findings and 0
EXPRESS-rule findings, as on main.
2. **Every body newly drawn that Revit exports is checked**, on
`mesh_bodies_vs_ifc`'s class counts, since its list of bodies holds only
some and `far_vertices_vs_ifc` does not read `IfcFurniture`. For each
class that gains bodies, each count of bodies within a bar rises by as
many as the class gains:
    - Revit's vertices from rvt-rs's surface within 0.01 ft;
    - rvt-rs's vertices from Revit's within 0.01 ft;
    - the volume within 1 per cent of Revit's.
A count that rises by less means a newly drawn body fails it, and those
bodies are read face by face before anything lands.
    - **Result (full Measure):**
- **Fails on `IfcFurniture`** on the four office files: 30 gained, each
count rises by 0. Read face by face
([comment](#2102 (comment))):
the faces meet within 0.001 ft, and Revit's export draws the round bar
with a square along its legs and straight pieces on its U-bend.
- **Holds on `IfcDoor`**: on each housing file 4 gained, and the 0.01 ft
and 1 per cent counts each rise by 4; on the held-out house 10 of 10.
Their 0.001 ft and "ref on ours" counts do not rise (the comment reads
one door).
3. **The shared reader changes nothing else.** `ring_impl` also reads
planar faces and the cylinder's one-loop rings, and a plane beside a
two-loop cylinder now refines its edge on that cylinder's steps. On
every export that moves, no body drawn from a saved mesh on both sides
changes its mesh (`ifc_body_diff.py`'s count, expected 0).
    - **Result (full Measure):**
- **Holds**: 0 on all 94 export pairs read. The held-out house's export
is not kept, so it was not read here. At `d46bfeff`, `ring_impl` is as
on main: the full-turn reader and the open ring it needed are removed.
4. **Nothing newly refused.** No refusal reason in any
`diagnostics.json` rises, except where bodies leave `multiple cylinder
trim loops unsupported` for one of the new two-loop reasons or a later
one. Each such move is listed by reason.
    - **Result (full Measure):**
- **Holds.** 1,289 bodies named that reason alone and are drawn. 97 more
named it with others and now name only the others: 60 `a trim loop does
not close in the surface's parameters; disconnected UV boundary;
unsupported surface HermiteSurf`, 21 `face regions need subdivision`, 10
`unqualified collapsed ruled profiles; unqualified collapsed ruled
trim`, 6 `disconnected UV boundary`. No body names a two-loop reason.
5. **The same-project gates pass**, and no held-out export moves away
from Revit.
    - **Result (full Measure):**
- **Holds** on `1ab9c54e`: "pass: 15 samples held to their earlier
saves, and the Areas on 4 saves and on the 2021 save". `d46bfeff`'s
exports are byte-identical to it. The held-out house moves only by its
10 doors (row 2).
6. **As they come:**
- the bodies that named the reason alone (30 on each office file, 4 on
each housing file), drawn or with their new reason;
    - bodies newly drawn by file, from `diagnostics.json`;
    - which exports move, by model.
- **Result (full Measure):** the 30 on each office file and the 4 on
each housing file that named the reason alone are drawn. The bodies
newly drawn and the exports that move are listed by file and class in
the Summary above.

**What each outcome means, written before the run.**
- If rows 1 to 5 hold and row 2 checks at least one body, the change
goes for review with its report and a changelog fragment.
- If those bodies come back with a new two-loop reason, that reason is
their shape. It is read before any change to the reader.
- If row 2 fails, the failing bodies are read face by face before
anything else.

**The outcome.** Rows 1, 3, 4 and 5 hold, and row 2 checks the doors,
which pass. Row 2 fails on the 30 grab bars a file, read face by face as
registered: Revit's export draws the round bar as a square along its
legs. Landing with row 2 failed on them is outside the outcomes
registered above; it is Griffin's decision (2026-11-20), to ship them
drawn round, as the file saves them, with the miss on record.

**The bodies no Revit export in Measure scores** (1,153 on the samples)
were read four ways: against the record box each replaced (Revit's own
box for the element, along its three axes), against Revit's IFC4 export
of Snowdon architectural, against the VIM export of Snowdon, and with
the crack probe.
- The rme pipe fittings fill their boxes to within 0.1 mm on all nine
rme files. The same-project gate holds the 2025, 2026 and 2027 saves of
rac advanced, rac basic, rme advanced, rme basic and rst basic to their
2024 saves, so it holds these fittings on six of them.
- No Snowdon body reaches past its box, except the 108 sanitary
terminals, by up to 1.4 mm (median 1.0 mm). The five trash chutes fill
theirs exactly.
- Two classes stop short of their boxes, and the VIM does too. All 36
duct fittings are `Round Tee:Standard`: 21 stop more than 1 cm short, up
to 42 mm (36 mm the median of all 36). The four read by axis stop 42 mm
short on the low side of two of the box's axes (extents 0.32, 0.30 and
0.32 m). 13 of the 404 air terminals (`Supply Grille`, `Return Grille`)
stop 10 to 21 mm short on both sides of two axes. On two tees and two
grilles read, the VIM's mesh has rvt-rs's height (0.2812 m and 0.1218 m)
and its extents within 9 mm, so the space is in the box alone.
- Snowdon architectural's 7 (a column, five trash chutes and an
appliance) were also read against Revit's own IFC4 export of that file,
from bldrs-ai/test-models, which is not in Measure. On all 7, Revit's
vertices are within 0.001 ft of rvt-rs's surface and the volume is
within 0.8 per cent of Revit's. On the column and the five chutes,
rvt-rs's vertices stand up to 0.0129 ft off Revit's, so those six would
fail the 0.01 ft bar. Revit writes all 7 as explicit facets
(`IfcPolygonalFaceSet`); which of their parts are round is not read.
- Snowdon HVAC's 440 and plumbing's 108 were read against the VIM export
of the model's 2027 edition (vimaec/vim-hackathon: the meshes Revit gave
the VIM exporter, for every element of all six documents; kept local),
with `tools/re/footing_meshes_vs_vim.py --document HVAC|Plumbing`:
- Height and lowest point: all 36 duct fittings and 108 sanitary
terminals within 0.001 m of the VIM's, and 391 of the 404 air terminals
(the other 13 by 0.00107 m).
- Volume: the air terminals are 1.1 per cent over the VIM's. The duct
fittings are within 8.7 per cent, inside the 30 per cent main's 961
already show.
- The sanitary terminals' volume figure is not a volume. Three were read
shell by shell. Each holds a trap body open in both exports (158 and 110
edges one triangle holds). rvt-rs's reads 0.000930 m³ on all three, and
the VIM's reads −0.000145, +0.000220 and +0.001962 m³, so the spread is
the VIM's open shell taking its placement into its signed volume. Their
closed pipes are 6.2 to 6.7 per cent over the VIM's, whose pipes have
about ten sides where rvt-rs's are round.
- Whether their faces meet: the #2098 crack probe at `06e22382` on every
2024 to 2027 sample
([44663576285](https://github.com/DrunkOnJava/rvt-rs/actions/runs/44663576285)).
- Snowdon plumbing: all 121 bodies it reads meet within 0.00093 ft. The
rme pipe fittings meet within 0.00092 ft on every save from 2024 to
2027, and the trash chutes and the appliance within 0.00012 ft.
- Snowdon HVAC: 404 of 440 meet within 0.001 ft. The other 36 are the 36
newly drawn `Round Tee:Standard`. Each has 32 boundary vertices beyond
0.001 ft, up to 0.00158 ft, all where one cylinder face meets another:
1,152 new gap vertices on bodies this change draws. The probe's commit
holds `1ab9c54e` with two probe commits on top. With two-loop faces
marked (`87b23899`,
[44679890567](https://github.com/DrunkOnJava/rvt-rs/actions/runs/44679890567)),
each tee's 32 split evenly: 16 on its two-loop face stand off the
one-loop cylinder beside it, and 16 on that cylinder stand off the
two-loop face. So each face puts points on their shared edge that the
other does not hold, the same kind as the 588 between two cylinders that
RE-493 left on main. Putting both on the edge's saved points is not done
here.
- Snowdon architectural's column has 4 beyond 0.001 ft, up to 0.0011 ft,
where a ruled face meets a plane.
- Snowdon has one save, so no gate holds its 556 bodies. A box larger
than the body says nothing by itself: the sauna doors' boxes are 0.82 m
larger than bodies that pass row 2.

## Audit-honesty checklist

- [x] The report
(`reports/element-framing/RE-494-cylinder-two-trim-loops.md`), the
changelog fragment and the `docs/format-reconnaissance.md` addendum
follow the decision on the 30 grab bars.

## Review

Self-approved by the maintainer session that wrote it, after reading the
whole diff again at `968e15f8` (`src/research/native_saved_mesh.rs`, the
report, the changelog fragment and the three docs pages); the second
reader is not running. The tees' gaps between two curved faces, and the
column's at a plane, are tracked in #2104; Snowdon Plumbing's export
passing the 120 MiB Measure validates, in #2103.

## Legal and contribution hygiene

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

## Breaking changes

None: research module internals only.
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