Skip to content

fix(saved-graphics): a plane or cylinder face's ring joins stored edge ends within 0.00001 ft along the surface as one point (#2085) - #2120

Merged
DrunkOnJava merged 6 commits into
mainfrom
fix/2085-touching-ends
Nov 21, 2026
Merged

DrunkOnJava merged 6 commits into
mainfrom
fix/2085-touching-ends

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Nov 21, 2026 •

Copy link
Copy Markdown
Owner

Summary

A plane or cylinder face whose ring of stored edges does not join within 1e-7 in the surface's parameters is refused as disconnected UV boundary. This joins a ring where every gap's step along the surface (a chord on a plane, a helix on a cylinder, so a seam never qualifies) is under 0.00001 ft. Each such pair of ends becomes one point, the ring's own: the next edge's stored end is dropped, so its first span starts up to 0.00001 ft off it. No edge is added. Wider gaps stay refused, as Griffin chose (2026-11-21, #2085).

On main this draws the BIM4LCA office's curtain mullions 3029185 and 3029301 from their saved meshes, six bodies across four files. Each is within 0.000003 ft of Revit's body and at its volume. Four walls gain their five base quantities, all equal to Revit's. Nothing that was drawn changes, and nothing is newly refused.

Testing

Rows registered on #2085 before any run was read (rows, results). RE-497 has the figures.

  • Full Measure 44857635338 (42fad511 against 0d0fc927, every model, held-out included):
    • 13 of 120 exports differ. ifc_body_diff.py finds no drawn body changing and none lost.
    • 67 objects' refusal texts change, each named disconnected UV boundary on main, and they stay refused.
    • 11 of 102 diagnostics.json differ in two counts only. body_sources: saved_graphics_mesh +2 or +1 on each office file and partition_family_instance_oriented_box −2 or −1, the mullions. saved_mesh_refusals: its keys move with those 67 texts.
    • Wall quantities rise from missing to equal (+5, +15). "Different" and "values Revit does not write" do not move, nor any psets_vs_ifc line.
    • All 18 held-out models' counts are identical, and the same-project gates pass.
  • Crack probe 44857637927: of 5,927 bodies, none gains a boundary vertex over 0.001 ft.
  • Probe on the research branch 44854748630: faces refused as disconnected fall from 351 to 199 (housing) and from 142 to 58 (office), with nothing newly refused. On the contributor's save, 36 of 84 cylinder faces mesh.
  • Four pure-helper tests of joined_ring's failure modes.

Changes

  • src/research/native_saved_mesh.rs: ring_impl is split into ring_segments and joined_ring; step_length and the touching join (RING_TOUCHING, joined_within); four tests.
  • reports/element-framing/RE-497-touching-ring-ends.md, changelog.d/fixed/2085-touching-ring-ends.md, and the docs/format-reconnaissance.md addendum.

Not in this change: the research branch's bounded join for revolved, ruled, cone and spline faces, which is to be held to the same 0.00001 ft before it is proposed.

Legal and contribution hygiene

  • Apache-2.0; clean-room (public byte observations of saved meshes); no 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).

…e ends within 0.00001 ft along the surface as one point, where Revit's saved edges part by less than that (#2085)
…he bound, a seam, a short edge and an edge both of whose ends touch the ring, as pure-helper tests (#2085)
…ong the surface are one point; its changelog entry and reconnaissance addendum (#2085)
@DrunkOnJava
DrunkOnJava marked this pull request as ready for review November 21, 2026 03:40
@DrunkOnJava
DrunkOnJava merged commit b74c0e3 into main Nov 21, 2026
63 checks passed
@DrunkOnJava
DrunkOnJava deleted the fix/2085-touching-ends branch November 21, 2026 03:55
DrunkOnJava added a commit that referenced this pull request Nov 21, 2026
…ount and its reads, and three reports cite rebuilt reads refs (#2085, #2111) (#2121)

## Summary

RE-497, landed in #2120, stated several things the recounts already
posted on #2085 corrected, and its reads were not archived. This brings
it in line, and repoints three reports at rebuilt reads refs, docs only.

- **§1:** of the housing's 165 plane rings at 0.0001 to 0.001 ft, 68
part by exactly 0.1 mm (60 along one parameter, 8 along both), not
"most". The three graphs holding 158 of them hold 53, 53 and 52, not
"the same counts".
- **§3:** 13 planes (5 housing, 8 office) stay refused through a
cylinder beside them that is still refused; they were left out.
- **§3:** the 67 objects whose refusal text changes stay refused, and
the three reasons that rise are now given with their counts:
`disconnected parametric trim in model coordinates` on 60, `a trim loop
does not close in the surface's parameters` on 1, and `shared curved
edge leaves adjacent plane` on 6.
- **§3:** the crack probe does not track the newly drawn mullions; their
evidence is their fit to Revit's export.
- **§3, added:** the reads of the kept exports are cited:
`research-tools/2085/` on `refs/archive/2026-11-21/measure-2085-reads`
(`dfb7cb34`).
- **§5:** the contributor's runs were on the research branch, which also
carries a polygon fix and a larger graph budget; `main` has not been run
on their save.
- **Addendum:** the gaps from 0.00001 to 0.0001 ft are kept apart as not
read, rather than counted with the missing pieces.
- **RE-495 and RE-496:** their reads ref,
`refs/archive/2026-11-20/measure-2111-reads`, was rebuilt as one commit
(`b060ca4b`) with each script's paths taken relative to the repository,
as was #2085's. Their citations follow.
- **Header:** the crack probe is cited by its archive refs, as §4
already was.

## Testing

Docs only; no code, output or measured figure changes. The figures are
those posted on #2085: the 0.1 mm count from the gap probe
([7053384257](#2085 (comment))),
the rest from Measure
[44857635338](https://github.com/DrunkOnJava/rvt-rs/actions/runs/44857635338)
([results](#2085 (comment))).

## Legal and contribution hygiene

- [x] Apache-2.0. No 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).
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