Skip to content

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

Merged
DrunkOnJava merged 9 commits into
mainfrom
research/2082-hermite-spline-profiles
Nov 19, 2026
Merged

DrunkOnJava merged 9 commits into
mainfrom
research/2082-hermite-spline-profiles

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Nov 19, 2026 •

Copy link
Copy Markdown
Owner

Summary

A GHermiteSpline profile curve of a ruled surface or a surface of revolution is read, evaluated and meshed, so a body refused for that curve alone is drawn from its saved graphics (RE-311's layout). Where a plane shares an edge with such a ruled face, crossing both of its parameters, both faces draw the edge straight between the file's saved points for it, so they meet (RE-492).

Against main (Measure 44536807887, at 115d224a):

  • 25 bodies on 10 files are newly drawn: the BIM4LCA timber office's two stair flights (both saves), a ramp and its ramp flight on each terrain file, a beam on each rac_advanced save of 2023 to 2027, and 12 bodies on Snowdon Towers Architectural.
  • In diagnostics.json: body_sources.saved_graphics_mesh +25, partition_element_record_bbox -17, partition_family_instance_turned_box -8 (Snowdon Towers).
  • Scored against Revit: the flights' Revit vertices within 0.000109 ft of our surface (31 of 31 flights, 29 on main), their volume 112.116 and 112.117 ft³ against 112.115 and 112.116. The ramp flight is within 0.00088 ft. No other body-scorer count moves. The 17 bodies on the samples have no Revit export.
  • saved_mesh_refusals: bodies with a Hermite profile and another unread part stay boxes, the entry now naming that part:
    • the office's washbasins, 19 a file (17 on the timber files): malformed ruled-surface edge is connected to face N;
    • the housing's wall-hung toilets, 6 a file: GNurbSpline;
    • RE1 Electrical's two panels;
    • rac_basic's one body a save: a trim loop does not close in the surface's parameters;
    • 2 on Snowdon Towers: shared curved edge leaves adjacent plane.
  • Held out: the single-dwelling house's export changes and its kept counts do not (19 saved-graphics bodies scored, 28 record boxes). Its export is not kept, so what moved is not read.

Motivation

#2082: a practitioner's 270 MB Revit 2024 building-services model keeps 424 elements as boxes for this one reason, the largest it reports. #1191 (W6). On the open models Measure reads, the reason is on the BIM4LCA office (19 elements a file), the housing (6), the office terrain (2) and RE1 Electrical (2), each with Revit's own export beside it.

RE-311 read the curve's layout and evaluated it at 64b2cff0 (archived as refs/archive/2026-11-03/re311-spline-profiles). It did not land then because no body with a Revit export of its own gained a mesh: other refusals kept those elements boxes. RE-329 says the office's 19 also hold HermiteSurf faces, which #1941 reads. This pull request measures the spline alone; research/1191-spline-profiles holds it on top of #1941 for the combined count.

Changes

  • src/research/native_parametric_surface.rs: Curve::Hermite, read from m_NodeArray (m_iParametr, m_iPoint, m_iTangent), m_Periodic and m_endParams; a cubic Hermite segment between consecutive nodes, found by halving the nodes and its analytic derivative; a periodic spline refused; spline_steps, the equal steps its largest second difference asks for to hold a chord (at most 128); speed.
  • src/research/native_parametric_mesh.rs: the grid of a surface of revolution and of a ruled surface with such a profile takes those steps.
  • src/research/native_saved_scene.rs: m_NodeArray, m_Periodic, m_iParametr, m_iPoint, m_iTangent join the saved-graphics fields.
  • probes/examples/probe_1683_ruled_grids.rs: names the new curve.
  • src/research/native_parametric_mesh.rs, src/research/native_saved_mesh.rs: FaceGrid::chord_edges and chords, the edges a spline ruled face shares with a plane whose samples cross both its parameters, and the spans between their saved points. The plane keeps those edges' saved points (refined_plane_edge). trimmed_cells_on tags each point with the span it is made on, and on_chords puts the ruled face's tagged points on the line between the span's ends, kept only where every triangle keeps its area.
  • reports/element-framing/RE-492-hermite-spline-profiles-drawn.md, changelog.d/added/2094-hermite-spline-profiles.md, and RE-492 in docs/format-reconnaissance.md and docs/one-project-rules.md.

Testing

Unit tests are banned in this repository. Rows registered here before any run is read:

  1. Only bodies the curve refused move. In an unfiltered Measure against main, the exports that differ are of models whose saved_mesh_refusals name a GHermiteSpline profile, and in each the elements whose body changes are elements that reason refused.
  2. The reason goes. On each model, the refusals naming unsupported parametric profile curve GHermiteSpline fall to 0; what those elements are refused for next is reported as it comes.
  3. What is newly drawn is Revit's shape. Of the newly drawn bodies that Revit's export also holds, at least 90 in 100 have every tested vertex of Revit's body within 0.001 ft of ours (mesh_bodies_vs_ifc). The ones that do not are listed.
  4. Nothing else moves. No scorer's "different" or "values Revit does not write" count rises on any model, and the same-project gates pass.
  • Unfiltered Measure: 44486295483. Rows 1, 2 and 4 hold and row 3 fails (results in the comments).
  • Unfiltered Measure of 115d224a: 44536807887. Rows 2 to 4 hold on this commit, and row 3 now has all 8 newly drawn bodies Revit's export also holds (4 flights, 2 ramps, 2 ramp flights) with every Revit vertex within 0.001 ft of ours. Row 1 holds by composition: its elements were read at 0130573d (44486295483), and the 8 bodies that move from there are among them. The held-out house's refusals are scrubbed, so its part of row 1 is read from its export hash only. Rows 9 to 15 hold (results in the comments).
  • 35d04301 (the points tagged as they are made, no work budget) against 115d224a: byte-identity run 44549221722, every export and diagnostics.json identical (120 of 120, 102 of 102). The rewritten cutter runs on every trimmed face, so the run exercises it on all 120 models; only the placement of tagged points is limited to faces with spans. d659fa7f differs from 35d04301 in src/ only by the unit tests' wrapper made test-only, a doc comment moved and one shortened path. Its full Measure against c22a87e4, the merge-base (main is two commits ahead), 44550549881, gives every export identical to 115d224a's in Run C (120 of 120), and the same-project gates and the advisory semantic check pass on it. The two commits after it change only RE-492.
  • 3a333551, from the re-read before approval. A spline profile found the segment it evaluates by scanning its nodes, at every point of a face's grid, so a file with very many nodes could ask for its points times its nodes. It now halves the nodes, picking the same segment for every parameter (23fdb87b). And spline_steps's doc names its cap in plain text, since a public item's doc may not link a private one. Its Measure against d659fa7f, 44560219384, gives every export and diagnostics.json identical (120 of 120, 102 of 102), and the same-project gates pass on 3a333551.

Rows for one lever on row 3, registered before its run is read. On the timber office's four new flights, the only Revit vertices more than 0.001 ft from our surface are two a flight, at most 0.00125 ft, and both lie in a flat side face's plane, within 0.00002 ft of the straight line between the saved points of an edge that face shares with a spline ruled face and that crosses both of the ruled face's parameters (far_vertices_vs_ifc, run 44518424477; probe_2094_edge_bow, run 44518914514). Two vertices a flight make it a lead, not a rule. The flat face draws such an edge along the curve the plane cuts from the ruled face (refined_plane_edge, #1706). The lever, a diagnostic and not the change to land: along such an edge, and only where the ruled face's profile is a spline, the flat face keeps the edge's saved points (b9e663b3 on research/2094-saved-points). It moves only where that cut curve leaves the saved points' line by more than 0.00025 ft. Run on the timber office and terrain files with mesh_bodies_vs_ifc, stair_bodies_vs_ifc, far_vertices_vs_ifc (now reading ramps and ramp flights too) and probe_2094_edge_bow. The baselines at 0130573d: the two body scorers and the exports in run 44486295483 (all four files); far_vertices_vs_ifc in run 44516271925 (the two timber files, flights only); the probe's mesh check in run 44520882600 (as built only).

  1. Row 3 on the flights. On the four new flights, every vertex of Revit's body is within 0.001 ft of our surface (stair_bodies_vs_ifc's surface figure and mesh_bodies_vs_ifc's "ref on ours"), and no flight loses its "0.01 ft" count or leaves its volume bin.
  2. The ramps hold. On both terrain files the ramps and their flight keep their "ref on ours", "0.001 ft" and "0.01 ft" counts. This row counts only where the file's export differs from 0130573d's; where it does not, the lever did not reach the ramps and the row is unexercised, not passed.
  3. Nothing else moves. Against that run's scorer outputs for the same four files, only bodies this pull request newly draws change.
  4. Expected and reported: the flights' volume against Revit's, and the probe's count of their boundary vertices more than 0.001 ft from another face, which is expected to rise: the flat face moves to the saved points and the ruled face does not. The as-built file has a baseline (196 a flight); the permit file is reported without one.

What each outcome means, written before the run. If row 5 passes, the change to design draws both faces of such an edge on the saved points' line, scoped to spline ruled faces, so only bodies this pull request newly draws can move. If row 5 fails, the two-vertex lead is wrong, and far_vertices_vs_ifc says where Revit's vertices miss next. Either way the crack between our own faces on main stays its own pull request, #2098.

Rows for the change to land, registered before its runs are read. Row 5 passed (results). With the lever, five of the eight largest remaining gaps on each flight are vertices beside the flat side face where Revit's two vertices missed (x = 305.029 against its 305.0318, and 157.7575 against 157.7549), off its plane by up to 0.0027 ft. That reads as the ruled face's side. The other three, at x = 315.2378 and 147.5489, are beside no plane read yet. Run D's surface= field confirms or refutes the reading. The change, 115d224a on this branch, is one commit on 0130573d with no merge of main. It covers an edge a plane shares with a ruled face whose profile is a spline, where the edge's samples cross both of the ruled face's parameters:

  • The ruled face decides which edges these are (FaceGrid::chord_edges), and the plane reads that set, so the two sides cannot disagree.
  • The plane keeps the edge's saved points, as the lever did.
  • The ruled face's vertices along each span between two saved points are put on the straight line between the span's ends. That is kept only where every triangle keeps its area. Anything else in that step leaves the face as the lever drew it, so the step refuses no face. A fallback leaves no diagnostic, so only the probe's mesh check below would show one, and only on the two flights.

Run C, a full Measure of 115d224a against main (nordic, r2025, samples, holdout, exports kept). Rows 12 to 15 compare its head side with the head side of run 44486295483 (0130573d, exports kept). Run D, probe_2094_edge_bow on bd6f2305 (research/2094-saved-points: the same src/ plus the probe) on the two timber office files, with mesh_bodies_vs_ifc, stair_bodies_vs_ifc and far_vertices_vs_ifc. That last scorer now also counts rvt-rs's vertices more than 0.001 ft from Revit's surface; its baseline on the lever (b9e663b3) is run 44534104018.

  1. Row 3 still holds on the flights. On both timber files: stair_bodies_vs_ifc 31 of 31, and mesh_bodies_vs_ifc "ref on ours" 2 of 2 as built and 5 of 5 at permit, with the "0.01 ft" count and volume bins unchanged from the lever's run (Runs C and D). far_vertices_vs_ifc lists none of Revit's vertices beyond 0.001 ft (Run D).
  2. The faces meet more closely. On each flight, the probe's count of boundary vertices more than 0.001 ft from another face falls from 179 and 180, and its largest gap from 0.00268 ft. What remains is reported by the face it is on (its surface class and straight spans). A face with spans (chords above 0) that still holds vertices over 0.001 ft is read face by face, since that is what a silent fallback looks like. This is the only row that shows the placement ran at all, so Run D is read before Run C is dispatched.
  3. The ruled side moves toward Revit's, not away. Up to now only Revit's vertices against our surface have been checked. On the lever, run 44534104018 finds 5,530 (3558983) and 5,293 (3561904) of each flight's 10,660 vertices more than 0.001 ft from Revit's surface, the same on both files. All are on smooth stretches of our body, and all but 54 and 53 face Revit's sloped triangles, where Revit's 307 and 310 vertices draw the curved faces more coarsely than ours. That total stands too high to show a 0.0027 ft move, so the row is held to the class the moved vertices should leave: those whose nearest Revit triangle faces sideways, 54 (3558983) and 53 (3561904). That count falls, and the total falls with it. If the side count falls and the total does not, the vertices only changed class, and the row reads "not shown". The limit: a count cannot see a vertex already past the bar moving further from Revit's surface.
  4. Nothing newly refused. No refusal reason in any diagnostics.json rises.
  5. Only bodies this pull request newly draws move. Each export that changes (ifc.sha256) is listed by model, the moved models and elements counted, and the moved elements read with tools/re/ifc_body_diff.py (which compares each body's triangulated face sets by fingerprint). Every moved element must be one whose body also changed from main's export to 0130573d's in run 44486295483: a body main draws as a box and the spline reader draws. The held-out models' exports are not kept (hashes only), so there the row is read from ifc.sha256 alone: a held-out export that changes is reported as moved and unread.
  6. No scorer 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.
  7. The same-project gates pass on 115d224a, and no held-out summary count moves.
  • Self-approved: this is the maintainer's own pull request, with no second reader running. Before approving, the whole change was re-read against c22a87e4: the Hermite reader and its segment search, the grid steps, chord_edges, trimmed_cells_on and on_chords, the plane's side, the saved-graphics fields, the probe, RE-492, the changelog fragment and the docs. The evidence is the Measure runs above.
  • tools/check-local.sh: not run (no local builds here); CI runs it. rustfmt --check and tools/ci/saved-graphics-fields.py pass locally.

Audit-honesty checklist

  • Docs, the changelog fragment and RE-492 follow the Measure, and describe the tagging mesher, whose exports are identical to those of the search every cited run measured. A fallback, where the ruled face's points stay on the surface because a triangle would lose its area, leaves no diagnostic: the saved meshes run on worker threads, whose budget notes are dropped. RE-492 and the fragment state that limit.

Legal and contribution hygiene

  • Apache-2.0; no Autodesk proprietary source, decompiled internals or NDA content (CLEANROOM.md). The layout is read from the files' own bytes (RE-311).
  • No new fixtures.

Breaking changes

native_parametric_surface::Curve (in rvt::research, behind unstable-research) gains a variant. native_parametric_mesh::FaceGrid (also in rvt::research) gains two public fields, chord_edges and chords, so a struct literal of it no longer builds. Output changes on the 25 bodies listed in the summary, and in the saved_mesh_refusals text of the bodies that stay boxes.

https://claude.ai/code/session_01NCFPVqpXUmLDmXf35nPPeP

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

DrunkOnJava commented Nov 19, 2026 •

Copy link
Copy Markdown
Owner Author

Corrected in a later comment: in row 3, Revit's vertices are at most 0.00125 ft from our surface (0.049 ft is the gap between the two meshes' nearest vertices), and the stairs are 0.17 and 0.27 per cent under Revit's volume, not within 0.25.

Rows 1 to 4, read on Measure 44486295483 (0130573d against main at c22a87e4; nordic, r2025, samples, holdout, exports kept). Row 3 fails, so this stays a draft.

  1. Only bodies the curve refused move: holds. 23 of 120 exports differ, 22 of 102 diagnostics.json: the BIM4LCA files, RE1 Electrical, Autodesk's rac_basic and rac_advanced saves and Snowdon Towers Architectural, and one held-out model. Every scorer line that moves is on an element the spline profile refused: those still boxed carry their next reason, and those drawn are listed below. The held-out model's summary counts do not move.
  2. The reason goes: holds. unsupported parametric profile curve GHermiteSpline is in 22 of the base's diagnostics files and in none of the head's. What those elements are refused for next: the BIM4LCA office's 19 a file, malformed ruled-surface edge is connected to face N (RE-311 met the same); the housing's 6 a file, GNurbSpline alone; RE1 Electrical's 2, one each.
  3. What is newly drawn is Revit's shape: fails. 8 bodies with a Revit export are newly drawn from their saved mesh: on each office terrain file an IfcRamp and an IfcRampFlight, and on each timber office file two IfcStairFlights. Their volume is Revit's within 0.01 per cent on all 4 flights, and every vertex of each body is within 0.01 ft of the other's on 6 of 8. But only 4 of 8 have every tested vertex of Revit's body within 0.001 ft of ours ("ref on ours"): the two ramps on each terrain file, not the four stair flights. On the flights the farthest of Revit's vertices is 0.049 ft from our surface. The stairs those flights belong to come much closer to Revit's: the two stairs of each timber office file were their record box (3,377 ft³ against Revit's 112 to 113) and are now within 0.25 per cent of Revit's volume.
  4. Nothing else moves: holds. No psets_vs_ifc or qtos_vs_ifc line moves on any model, and the same-project gates pass.

Next, before anything lands: why the four flights' vertices are 0.049 ft off. The candidates are the spline's chord (cut into equal parameter steps, at most 128) and the parameter range a face uses of the profile. RE-311 met the same question on RE1 Electrical's panels. The flights are on the BIM4LCA timber office, which Measure keeps exports of, so the next probe places Revit's vertices against each spline face.

@DrunkOnJava

Copy link
Copy Markdown
Owner Author

Two corrections to row 3 of my last comment, and what three runs since then show.

The corrections.

  • I wrote that on the four timber-office stair flights the farthest of Revit's vertices is 0.049 ft from our surface. That is wrong: 0.049 ft is how far apart the nearest vertices of the two meshes are. Measured against our surface, Revit's vertices are at most 0.00125 ft away on all four flights (stair_bodies_vs_ifc, both timber office files), just over the 0.001 ft bar.
  • I wrote that the stairs those flights belong to are within 0.25 per cent of Revit's volume. By stair_bodies_vs_ifc they are 0.17 and 0.27 per cent under it (113.14 and 113.03 ft³ against 113.34), on each file.

The two scorers' volumes for the flights differ, and I have not reconciled them. mesh_bodies_vs_ifc puts all four flights within 0.01 per cent of Revit's volume; stair_bodies_vs_ifc puts them 0.22 and 0.25 per cent under (111.88 and 111.84 ft³ against 112.12). Both figures stand until the difference is read.

Three runs on the timber office alone, one lever each, from this head:

run commit change flights' export Revit's vertices from our surface
44500215938 6b275262 twice the spline's steps byte-identical 0.00125 ft
44500222089 0ec590bd the spline step cap at 1,024, not 128 byte-identical 0.00125 ft
44510586239 6e3a7e74 a quarter of the chord bound on every face's grid moves (nearest-vertex gap 0.024 to 0.025 ft) 0.00125 ft
  • The first two leave the export byte-identical, so the spline's step count does not set these flights' grids.
  • The third cuts every face's grid four times finer and leaves Revit's vertices exactly as far from our surface, so the face grids' chord is not the cause.
  • In the third, one flight on each file no longer has every vertex of each body within 0.01 ft of the other's surface (mesh_bodies: 2 of 2 to 1 of 2 as built, where it scores the two new flights; 5 of 5 to 4 of 5 at permit, where it scores the two new ones and three main already draws). Since Revit's vertices stay within 0.00125 ft of ours, that miss is our vertices against Revit's mesh: either Revit's facets are coarser there than our finer grid, or our surface is off between Revit's vertices.

Next. A face's boundary is not cut by that chord: it runs through the edge points the file saves for each edge, which the third run does not change, so a Revit vertex on a boundary would read exactly as these do. The next step lists, for each flight, the vertices of each body more than 0.001 ft from the other's surface and which part of the flight each is on (a face's interior or its boundary, on a spline face or another), so the cause is read rather than guessed. Row 3 still fails, so this stays a draft.

DrunkOnJava added a commit that referenced this pull request Nov 19, 2026
DrunkOnJava added a commit that referenced this pull request Nov 19, 2026
…ved edges nearest each Revit vertex that leaves our surface (#2094)
DrunkOnJava added a commit that referenced this pull request Nov 19, 2026
…reports, per element, the edges that border a spline ruled face and how far they bow (#2094)
DrunkOnJava added a commit that referenced this pull request Nov 19, 2026
…ort does and measures how far each face open boundary lies from the other faces (#2094)
DrunkOnJava added a commit that referenced this pull request Nov 19, 2026
…y gap over 0.001 ft between the flights faces (#2094)
DrunkOnJava added a commit that referenced this pull request Nov 19, 2026
DrunkOnJava added a commit that referenced this pull request Nov 19, 2026
@DrunkOnJava

Copy link
Copy Markdown
Owner Author

Rows 5 to 8, read: row 5 passes, so the lead holds, on the flights it was read from. Keeping the flat face on the edge's saved points brings the two Revit vertices a flight that missed onto rvt-rs's surface. Run 44529253935 (b9e663b3 on research/2094-saved-points, against the baselines named in the body). Its only change under src/ from 0130573d is the lever, 13 lines in native_saved_mesh.rs. The four new flights are two elements, 3558983 and 3561904, in two saves of one project, with the same figures on both. Only four files were run, and the lever changed nothing outside those flights and the stairs that hold them.

  1. Row 3 on the flights: passes.
    • stair_bodies_vs_ifc: on both timber files, every vertex of Revit's body is within 0.001 ft of rvt-rs's surface on 31 of 31 flights (29 of 31 before). On the new flights Revit's vertices are at most 0.000109 ft (3558983) and 0.0000979 ft (3561904) from that surface, against 0.00125 ft before.
    • far_vertices_vs_ifc lists none of them beyond 0.001 ft (2 a flight before).
    • mesh_bodies_vs_ifc: the flights' "ref on ours" count goes from 0 to 2 of 2 as built and from 3 to 5 of 5 at permit. Their "0.01 ft" count (2 of 2, 5 of 5) and volume bins do not move.
  2. The ramps hold: unexercised. Both terrain files' exports are byte-identical to 0130573d's (ifc.sha256), so the lever did not reach the ramps. By the row's own wording, that is unexercised, not passed. Already in the counts and not read: ramp flight 1386050 (Ramp:AP-ajoramppi) is the one outside mesh_bodies_vs_ifc's "0.01 ft" count (4 of 5), with rvt-rs's vertices up to 0.01305 ft from Revit's and a volume ratio of 0.5000. The probe lists a body with a spline profile, owner 1386051, at edges=12 gap_over_0.001=4 largest=0.013074. Whether the two are the same body is not read.
  3. Nothing else moves: holds.
    • Compared on the four files: mesh_bodies_vs_ifc (it samples columns and members), stair_bodies_vs_ifc, wall_rules and diagnostics.json. Everything is the same except the two timber files' lines for the two new flights and the two stairs that hold them (3558492, 3561901).
    • On both files, main draws all four as boxes (3,377 to 3,378 ft³) and this pull request newly draws them.
    • Those stairs' figure against Revit's surface stays at 0.00418 ft. Triangles drawn from saved graphics fall by 64 a file (as built, 1,345,261 to 1,345,197).
  4. Expected and reported.
    • The flights' volume, in stair_bodies_vs_ifc: 111.920 ft³ (3558983) and 111.849 ft³ (3561904), against 111.837 and 111.875 ft³ before and Revit's 112.115 and 112.116. One moves closer to Revit's and one further away, the same on both files.
    • The two scorers do not agree on volume: that figure is about 0.2 per cent under Revit's, while mesh_bodies_vs_ifc keeps both flights in its 0.01 per cent bin at a ratio of 1.0000. Why they differ is not read.
    • The count of boundary vertices more than 0.001 ft from another face was expected to rise. It falls: as built, from 196 a flight to 179 and 180, and the largest gap from 0.00286 to 0.00268 ft. The permit file, which has no baseline, gives the same 179, 180 and 0.00268 ft. Why it falls is not read.

On these flights, side by side: with this lever, row 3 passes, with 179 and 180 boundary vertices over 0.001 ft, up to 0.00268 ft. With #2098 merged (its Run B), row 3 fails at 0.00121 ft, with 28 over, up to 0.0024 ft. Closing the gap between the faces and meeting Revit's vertices are two different things here, and the change to land has to do both.

Next, as the body registered for a pass:

DrunkOnJava added a commit that referenced this pull request Nov 19, 2026
…than 0.001 ft from Revit's surface, by facing and crease
DrunkOnJava added a commit that referenced this pull request Nov 19, 2026
… face, crossing both its parameters, both faces draw it straight between its saved points (#2094)
DrunkOnJava added a commit that referenced this pull request Nov 19, 2026
… face, crossing both its parameters, both faces draw it straight between its saved points (#2094)
DrunkOnJava added a commit that referenced this pull request Nov 19, 2026
…among its Geometry's faces, as a primitive's object is the Geometry (#2094)
@DrunkOnJava

DrunkOnJava commented Nov 19, 2026 •

Copy link
Copy Markdown
Owner Author

Rows 9 to 15, read: all hold. The change, 115d224a, closes the crack between the flights' faces, keeps row 3, and reaches the terrain files' ramps as well, moving them toward Revit's.

  • Run C: the full Measure of 115d224a against c22a87e4 (nordic, r2025, samples, holdout, exports kept). Its head side is compared with the head side of run 44486295483 (0130573d).
  • Run D: bd6f2305, the same src/ plus the probe, on the two timber office files.

What it reaches: 4 elements, each in two saves, all on the BIM4LCA office. They are the flights 3558983 and 3561904 on the two timber files, and the ramp flight 1386050 and the ramp 1386524 on the two terrain files (the ramp ids from the scorer lines). No sample, Revit 2025 or held-out export changes against 0130573d.

  1. Row 3 still holds on the flights: holds. On both timber files, stair_bodies_vs_ifc gives 31 of 31. Revit's vertices on the new flights are at most 0.000109 ft (3558983) and 0.0000979 ft (3561904) from our surface. mesh_bodies_vs_ifc gives "ref on ours" 2 of 2 as built and 5 of 5 at permit, with the "0.01 ft" count and volume bins unchanged (Runs C and D). far_vertices_vs_ifc lists none of Revit's vertices beyond 0.001 ft (Run D).
  2. The faces meet more closely: holds. On each flight, in both files, no boundary vertex is more than 0.0001 ft from another face (179 and 180 were over 0.001 ft with the lever), and the largest gap is 0.000001 ft (0.00268 ft before). So the placement ran on both flights.
    • The surface= field I registered for reading what remained printed - for every face, because a primitive's object is the Geometry it was meshed from, not its face. A fix (the face found by its tag) is written in 1e65747c but not compiled or run.
    • The result answers what the field was for. The plane's side keeps the same edges as with the lever: both key on an edge between a plane and a spline ruled face whose samples cross both parameters, read from the same samples. So only the ruled face's side changed, and every gap closed, the three at x = 315.2378 and 147.5489 as well as the five beside the plane where Revit's two vertices missed. All of them were on the ruled face's side.
  3. The ruled side moves toward Revit's: holds. These are far_vertices_vs_ifc's rvt-rs vertices more than 0.001 ft from Revit's surface, by the facing of the nearest Revit triangle:
    • Those facing sideways go from 54 (3558983) and 53 (3561904) to none.
    • The totals fall with them, from 5,530 to 5,456 and from 5,293 to 5,220. The other 20 a flight leave the classes of slopes from 39 to 43 degrees, by 1 to 14 each.
    • One class rises, by one vertex on each flight: a vertex on a crease of our body facing a 43-degree slope (slope43 crease, 0 to 1).
    • Each flight now has 10,656 vertices, against 10,660 with the lever.
  4. Nothing newly refused: holds. No diagnostics.json figure differs on any of the 102 models with one on both sides; the held-out models' results are scrubbed of them.
  5. Only bodies this pull request newly draws move: holds.
    • 4 exports change: the two timber office files and the two terrain files. 8 bodies move: the 2 flights on each timber file and 2 ramp bodies on each terrain file.
    • ifc_body_diff.py puts every one of the 8 among the 130 bodies that changed from main's export to 0130573d's in run 44486295483.
    • No held-out export changes. Those are read from ifc.sha256 alone, since their exports are not kept.
  6. No scorer moves away from Revit: holds, and four counts rise.
    • The flights' "ref on ours" goes from 0 to 2 of 2 as built and from 3 to 5 of 5 at permit.
    • On both terrain files, the ramp flight 1386050 (Ramp:AP-ajoramppi) had rvt-rs's vertices up to 0.01305 ft from Revit's and now has them within 0.00088 ft. So the ramp flights' "0.01 ft" and "0.001 ft" counts in mesh_bodies_vs_ifc go from 4 to 5 of 5.
    • The ramp 1386524 goes from 0.000167 to 0.000005 ft, and saved_meshes_vs_ifc holds 6 of 6 ramps within 0.01 ft (5 before).
    • The ramp flight's volume ratio of 0.5 is now read as faces Revit's export holds twice; before, it was "another reason".
    • No psets_vs_ifc or qtos_vs_ifc line moves.
  7. The same-project gates pass on 115d224a. Against 0130573d, though, no sample export changes, so for this commit the gates pass unexercised. Against main, 6 of the gate's 15 samples have an export this pull request changes: the rac_advanced saves of 2025 to 2027, where a beam is newly drawn, and the rac_basic ones, where only a refusal's text changes. No held-out export changes against 0130573d. (Edited: against main one does, the held-out single-dwelling house, whose kept counts, 19 saved-graphics bodies scored and 28 record boxes, do not move.)

Two loose ends from my lever comment close here:

  • The flights' volume. It is now 112.116 ft³ (3558983) and 112.117 ft³ (3561904), against Revit's 112.115 and 112.116 (111.920 and 111.849 with the lever). So stair_bodies_vs_ifc and mesh_bodies_vs_ifc now agree on it: the disagreement went with the crack, though its cause is not measured. The two stairs that hold the flights are 113.422 and 113.273 ft³ against Revit's 113.341 and 113.342.
  • Where the ramps' miss lay. The lever run's probe listed two spline-profile owners on the terrain files, 1386051 at 0.013074 ft and 1386525 at 0.000168 ft. The ramp flight 1386050 and the ramp 1386524 had rvt-rs's vertices 0.01305 and 0.000167 ft from Revit's. The change moves only edges between a plane and a spline ruled face, and the lever left the terrain exports unchanged. So the ramps' miss lay on the ruled face's side, which is what the lever's row 6 left unexercised.

Next:

  • the changelog fragment and the report for this pull request;
  • this description brought up to date, saying how the diagnostics figures differ from main (the advisory semantic check flags that it does not);
  • then ready for review.

…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)
DrunkOnJava added a commit that referenced this pull request Nov 19, 2026
…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)
@DrunkOnJava DrunkOnJava changed the title feat(saved-graphics): a GHermiteSpline profile of a ruled surface or a surface of revolution is read and meshed, so the bodies it kept as boxes can be drawn (#2082) (#1191) (RE-311) 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) Nov 19, 2026
@DrunkOnJava
DrunkOnJava marked this pull request as ready for review November 19, 2026 16:02
@DrunkOnJava
DrunkOnJava merged commit 69ac3a2 into main Nov 19, 2026
64 checks passed
@DrunkOnJava
DrunkOnJava deleted the research/2082-hermite-spline-profiles branch November 19, 2026 16:36
DrunkOnJava added a commit that referenced this pull request Nov 19, 2026
…aw an edge they share across both its parameters straight between its saved points, so the two faces meet (#2098) (RE-493) (#2099)

## 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](#2098 (comment))).

## Changes

- `src/research/native_parametric_mesh.rs`: `keeps_saved_chords` takes
surfaces of revolution and cones as well as ruled faces with a spline
profile.
- `src/research/native_saved_mesh.rs`: the plane side's comment.
- `reports/element-framing/RE-493-saved-points-revolution.md`, its
`docs/format-reconnaissance.md` addendum and
`changelog.d/fixed/2098-saved-points-revolution.md`.
- `reports/element-framing/RE-492-hermite-spline-profiles-drawn.md`: one
sentence that named a registered row of #2094's names what it means.

## Testing

Unit tests are banned in this repository. **Rows registered before any
run is read.** The lever's rows 9 and 12 held
([results](#2098 (comment))).
- **The rule.** The candidate is `ac956181` on `fix/2098-saved-chords`:
`main` with #2094 landed (`69ac3a26`, the points tagged as they are
made), with #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 #1706's
refinement, and a ruled face between plain curves stays as it is.
- **Why these classes.** Run H's base side
([44556926199](https://github.com/DrunkOnJava/rvt-rs/actions/runs/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 | | | |

- **Surfaces of revolution** carry every gap the lever closed over 0.001
ft, and both bodies it newly meshed (2110101 and 2110417 hold surfaces
of revolution only).
- **Cones** carry Plumbing's fall from 130 to 0 vertices over 0.0001 ft.
That is one model with no Revit export, and no gap over 0.001 ft on
either side.
- **Ruled faces show no change.** The base already gives #2094's spline
faces the rule, and the 13 meshed bodies with ruled crossing edges have
the same figures on both sides. On the BIM4LCA files these are #2094's
spline faces, with no gap on either side: the four flight and stair
bodies on each timber office file, and on each terrain file the ramp
flight 1386050 and the ramp 1386524 (largest gap 0.000001 ft on both
sides). On Snowdon Towers Architectural it is one body, 2181762: 22
vertices over 0.0001 ft, none over 0.001 ft, the largest 0.000932 ft, on
both sides.
- On Snowdon Towers Architectural the lever moved as many bodies as it
meshes there, 139: 138 with surfaces of revolution, and 2181762. If
2181762 is among them, its ruled face is a plain one, since the base
already gives spline faces the rule. Row 6's count tests that: 138 says
so, and 139 would mean some other body moved, so that no plain ruled
body was measured at all. Either way the one plain ruled body read meets
no better, so the rule leaves plain ruled faces out.
- **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.

4. **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](https://github.com/DrunkOnJava/rvt-rs/actions/runs/44556888939)
on #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.
5. **Nothing newly refused.** No refusal reason in any
`diagnostics.json` rises.
6. **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](#2099 (comment)).
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

- [x] The changelog fragment and the report (RE-493) follow the Measure.
- [x] 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

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