Repository navigation
research(saved-graphics): per-cell clipping of a trimmed loop, merged with current main and measured on every model (#1247) (RE-302) - #1361
Closed
DrunkOnJava wants to merge 27 commits into
Closed
DrunkOnJava wants to merge 27 commits into
DrunkOnJava wants to merge 27 commits into
Conversation
…d surfaces and surfaces of revolution (#1247) (RE-302)
…n curved profiles at a chord-bounded step (#1247) (RE-302)
…nd and V steps from its sampled twist (#1247) (RE-302)
…that is not its UV box, its triangles cut at the grid's U and V values (#1247) (RE-302)
…hat is not isoparametric through the curved face's own grid cuts (#1247) (RE-302)
… curved face lies from the plane, at its samples and between them (#1247) (RE-302)
…e true edge, each grid crossing solved onto the plane, not on the straight UV line between Revit's samples (#1247) (RE-302)
… two points crosses a grid line, as a crossing moved along a V line can carry its neighbours across a U line (#1247) (RE-302)
…within each U cell, so its points keep the edge's own order, and a plane loop that crosses itself after refinement is rejected (#1247) (RE-302)
…it's samples and cut where the trace crosses the grid, each point the root nearest it, so a turn between samples keeps its order (#1247) (RE-302)
…urface's envelope instead of failing the face (#1247) (RE-302)
… changes each traced point's search sees, to test whether the trace can follow a second branch (#1247) (RE-302)
…ach grid cell it covers, its pieces' corners shared, instead of its earcut slivers cut at every knot (#1247) (RE-302)
…d bound alone, its loop's own vertices no longer added to the grid's knots (#1247) (RE-302)
… Revit's mesh of it, to find what draws the extra surface (#1247) (RE-302)
… the surface's orientation, so a cone is meshed too (#1247) (RE-302)
…aphs from channel 103, and the scorer prints both bodies' centres and extents (#1247) (RE-302)
…ges' coordinates, so the plane beside such an edge still meets the face's samples (#1247) (RE-302)
…ices that lie off our surface, and the sag of Revit's triangles where ours lie beyond 0.01 ft (#1247) (RE-302)
…nd a piece of fewer than three points has no triangles (#1247) (RE-302)
…ich clippy's type_complexity flags (#1247)
…with main and measured on every model, still negative: the toilets fail 0.01 ft and ref-on-ours, and the default export moves on a held-out model (#1247) (RE-302)
…counts: only IfcWindow moves, 14 more windows within the 1280 bar, and an open item on narrowing the readers (#1247) (RE-302)
3 tasks done
DrunkOnJava
added a commit
that referenced
this pull request
Nov 4, 2026
…#1247) (RE-302) (#1363) ## Summary Report only. RE-302 section 7, "Per-cell clipping, on main": the second attempt's per-cell clip of a trimmed loop (RE-302 section 6) merged with `main` at ac7884e and measured on every model the lane covers, a negative. The readers stay on the draft #1361. No code changes. ## Motivation #1247. RE-302 section 6's "What a next attempt needs (3)" asked for the second attempt to be measured on Core Interior, RE1, the Revit 2025 models and the 2024 samples before any landing, and for a default-export byte-identity run. This records both on `main`. ## Changes - `reports/element-framing/RE-302-ellipse-profiles-and-trimmed-parametric-faces.md`: header (runs, result), section 4 ("Not claimed": the second attempt's unmeasured files, and the 14 windows' readers), section 6 (the next-attempt note says what section 7 did), and the new section 7. - `changelog.d/research/re302-per-cell-clipping.md`. ## Testing N/A: docs only, no code. The figures are Measure runs on GitHub's runners, named in the report: - 41849309128, `--saved-meshes`, 19 pairs against `main`: the office back under the schema step's limit (1,191,138 triangles, 104.6 MB, against 2,097,501 and 181.8 MB at f4d82ed and 568,885 and 82.2 MB on `main`); the toilets 0 of 43 on 0.01 ft and "ref on ours". - 41849313875, default export, 111 pairs: 110 identical, one differs (a held-out house). - 41852625343, that house, counts only: only `IfcWindow` moves, 2 to 16 scored, all within the #1280 bar. The commits the report's reproduce commands name (20da463, 88688aa) are on #1361's branch. - [x] No code, no emojis, no private paths, no PII; the held-out model appears by counts only. ## Audit-honesty checklist - [x] No capability claim: the readers are not on `main`, and the report says why (the toilets fail the 0.01 ft and "ref on ours" bars, and the default export would move a held-out model). - [x] A research fragment, `changelog.d/research/re302-per-cell-clipping.md`. ## Breaking changes None. ## Related issues Refs #1247 (the readers: draft #1361).
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
Draft, research, and a measured negative. Carries RE-302's readers (ellipse profiles, curved ruled surfaces, trimmed parametric faces) with the per-cell clip of a trimmed loop, merged with current
main(ac7884e), and measures them on every model the lane covers. The readers do not land: the office's 43 toilets fail the 0.01 ft and "ref on ours" bars (0 of 43), and the default export, which should not change, moves on a held-out model. Report: RE-302 section 7.Deviation from the brief
The brief asked for the per-cell clip to be written on top of
research/1247-ellipse-profiles(6198fb5). It already exists:re/1247-per-cell-clip(tip d5d26fb, archived atrefs/archive/2026-11-03/re302-per-cell-clip), reported in RE-302 section 6 onmain(#1321). This branch is that tip plus a signed merge ofmainand the helper tests, not a second implementation. Every commit from bf90093 to d5d26fb is signed.Changes
--no-ffmerge oforigin/maininto d5d26fb (two conflicts, both files research(saved-graphics): clipping a trimmed loop to its grid cells frees the office's toilets at 1.006 of Revit's volume, and what is left is Revit's faceting, so the readers stay off main (#1247) (RE-302) #1321 added:probe_re302_toilet_faces.rsandtoilet_faces_vs_ifc.py; main's versions kept; the reader files merged cleanly with fix(saved-graphics): a plane face split into tiling regions is drawn whole, and a census counts what keeps a saved mesh from decoding whole (#1144) (#1247) (RE-329) #1338, feat(ifc): a level beam whose record box is longer than its location line is that box along the line (Refs #1247) (RE-328) #1337, research(families): rebuild a family's extrusions from their sketch curves, and an opt-in rvt-ifc --family-extrusions (#156) (RE-327) #1342, fix(ifc): family extrusions draw arcs again, keeping the mesh for an arc over 0.12 ft (#1346) (#1355) (RE-327) #1352).native_parametric_mesh.rs: failure-first tests of the pure helpersclip_axisandtriangulate_piece(run by CI'scargo test --profile ci --lib), andtriangulate_piecereturns nothing for a piece of fewer than three points.type_complexity, no behavior change.reports/element-framing/RE-302-...md: section 7.Measured (Measure at 20da463 against
mainac7884e, except where noted)Run 41849309128,
--saved-meshes, 19 pairs; 8 identical (Core Interior, RE1 electrical, mechanical and plumbing, both terrain variants, rme basic and advanced), 11 differ.main's; f4d82ed had 2,097,501), IFC 82,170,411 -> 104,600,924 bytes (f4d82ed: 181.8 MB), validated by the schema step again, the same 4 rule findings asmain. At permit 573,323 -> 1,195,576 triangles, 82,161,464 -> 104,591,977 bytes. The figures equal section 6's b5d5546 row to the triangle.Run 41849313875, default export, no
--saved-meshes, every model (office pair, r2025, every release's samples, holdout, families),scorers=none: 111 pairs with an IFC hash, 110 identical byte for byte, 1 differs, the held-out AA single-dwelling house.Run 41852625343 (88688aa, default export,
mesh_bodies_vs_ifc, the AA house only, counts only): onlyIfcWindowmoves. Saved-graphics mesh bodies scored go from 2 to 16; all 16 are within 1% and 0.01% of Revit's volume, within 0.01 ft, and meet "ref on ours", median volume ratio 1.0000; 3 of 16 are within 0.001 ft in both directions, against 2 of 2 before. The readers draw 14 more of this house's windows from their saved meshes by default. All meet the #1280 bar, but most are not within 0.001 ft both ways; with counts only the scorer cannot say which bodies moved between columns. This house is a held-out model used up for W5 (a regression check), so these counts are evidence, not a development target.What remains open
Whether the readers could be narrowed to the face kinds the windows need (which meet the bar) without the ones that draw the toilets' extra surface: it needs a census of which reader each of the 14 windows used, measured on a non-held-out model; the AA house cannot be developed on.
The extra volume and surface: section 6 measured the toilets face by face (0.5% more area than Revit's); the shower head is a second body over Revit's volume, not probed. The 66 vertices at junctions between two of our faces are unresolved. Not measured:
--saved-mesheson the Revit 2025 models, the other releases' samples and the held-out models.Testing
No local build. CI's fast jobs pass at 88688aa. Measure runs above.
Breaking changes
None. The default export of the held-out AA house moves with these readers (run 41849313875), which is a reason they do not land as they are.
Related issues
Refs #1247.