Skip to content

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
mainfrom
research/1247-trim-cell-clipping
Closed

DrunkOnJava wants to merge 27 commits into
mainfrom
research/1247-trim-cell-clipping

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Nov 4, 2026 •

Copy link
Copy Markdown
Owner

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 at refs/archive/2026-11-03/re302-per-cell-clip), reported in RE-302 section 6 on main (#1321). This branch is that tip plus a signed merge of main and the helper tests, not a second implementation. Every commit from bf90093 to d5d26fb is signed.

Changes

Measured (Measure at 20da463 against main ac7884e, 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.

  • Office as built: 568,885 -> 1,191,138 triangles (2.09 times 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 as main. 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.
  • Scorer: IfcSanitaryTerminal 47 -> 90 scored, all 90 within 1% of Revit's volume; the 0.01 ft, 0.001 ft and "ref on ours" columns stay at 34, so none of the 43 new toilets meets them; class median 1.0000 -> 1.0017. RE1 Architecture IfcFlowTerminal 6 -> 7 scored: "ref on ours" 3 -> 4, not within 1% (5 stays 5) or 0.01 ft (3 stays 3); the new body is a shower head at 1.1046 of Revit's volume.
  • 2024 samples, counted not scored: 8 of the 10 change (rme basic and advanced do not). Table in section 7.

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): only IfcWindow moves. 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-meshes on 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.

…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)
#1352 and the rest)

# Conflicts:
#	probes/examples/probe_re302_toilet_faces.rs
#	tools/re/toilet_faces_vs_ifc.py
…nd a piece of fewer than three points has no triangles (#1247) (RE-302)
…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)
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).
@DrunkOnJava DrunkOnJava closed this Nov 5, 2026
@DrunkOnJava
DrunkOnJava deleted the research/1247-trim-cell-clipping branch November 5, 2026 13:24
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