Repository navigation
fix(saved-graphics): mesh a cylinder face trimmed by any single loop, in strips across its angle (#1247) (RE-304) - #1257
Merged
Conversation
…tates its cost and corrected fitting ratios (#1247)
…r-trims # Conflicts: # docs/rvt-moat-break-reconnaissance.md
This was referenced Nov 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Saved meshes read a cylinder face whose trim loop does not run round its UV box: a door's curved faces cut by its leaf and frame, a fitting's. Before, such a face was rejected and the whole element kept its box (RE-224). A cylinder is straight along its axis, so only U needs the chord bound. The loop is clipped into strips across U at the grid's own U values and earcut in arc-length coordinates. The strips must cover the loop's own area, or it is rejected as self-intersecting. A loop that does run round its box keeps the grid it had (RE-304).
Motivation
#1247. After RE-300 and RE-301,
nonrectangular cylinder trimwas the largest remaining reason a saved mesh is kept as a box: 718 elements in the census, 451 for that alone (Measure 41555808867). n3ur0m4n had offered this part in #1144. They were told on #1144 that we picked it up (with the maintainer's approval); cone faces and spline profiles stay theirs.Changes
src/research/native_saved_mesh.rs,cylinder_face:strip_mesh(withclip_u, Sutherland–Hodgman against one U line).reports/element-framing/RE-304-cylinder-trims.md, the reconnaissance addendum, andchangelog.d/fixed/1247-cylinder-trims.md.Testing
Unit tests are banned in this repository: do not add them. Show the change working end to end on real files instead.
tools/check-local.sh: CI.mainat 3e0ad51,--saved-meshes):mainat 957dada, default flags, unfiltered, with the office, R2025, held-out models and samples). 17 of 103 exports move, every change an improvement in the doors the default export draws from saved meshes:box_bodies_vs_ifcloses 155 boxes, anddoor_bodies_vs_ifc's "mirror rule wrong" goes from 155 to 0.mesh_bodies_vs_ifcIfcDoor 114 → 269 scored, 265 exact.mainmerged in) against the measured head 1b983f8,--saved-meshes. All 17 exports byte-identical and the scorer diff empty, so the guard never fires.--saved-meshesIFC goes from 76.6 to 82.1 MB, and its export from 33.8 s to 37.7 s.Audit-honesty checklist
changelog.d/Legal and contribution hygiene
Contributor declaration (CLEANROOM.md): based on the saved graphics' own records read from public files and Revit's IFC exports of them; no Autodesk SDK source, disassembly or NDA material.
Breaking changes
None.