Skip to content

fix(elements): leave out zero-length sketch lines so Core Interior's shading plates close (#233) (RE-95) - #467

Merged
DrunkOnJava merged 1 commit into
mainfrom
feat/sketch-zero-length-lines
Sep 28, 2026
Merged

DrunkOnJava merged 1 commit into
mainfrom
feat/sketch-zero-length-lines

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Sep 28, 2026 •

Copy link
Copy Markdown
Owner

Summary

Core Interior's 20 shading-device plates now carry their outline (RE-95, #233). Each plate owns one zero-length sketch line:

  • its record box is a single point;
  • it has no bounded line of its own;
  • the point is an end of two of the plate's other lines.

RE-50's recorded-ends path needed every line to be read, so that one record made all 20 plates decline. A zero-length line on another line's end is now left out. The other 56 lines' recorded ends close each plate into a 28-vertex ring with one void.

Results

Core Interior's 20 shading devices against 2024_Core_Interior_slim.ifc (plan_profiles_vs_ifc.py) main this PR
upward-face plan area within 0.1% of Revit's 0 20 (0.00%)
every upward-face vertex within 0.01 ft of Revit's, both ways 0 20 (0.000 ft)

Changes

  • src/partition_schema_mvp.rs: sketch_plan_profiles leaves out a zero-length sketch line whose point is an end of another recorded line. Every other RE-50 condition stays.
  • tests/iter_elements_typed.rs: core_interior_2024_slab_plan_profiles now requires all 100 Core plates to close, the 20 shading devices as 28-vertex rings with a void (it asserted they did not close).
  • research/witness/magnetar-2024-core-interior{,-slim}/observations/rvt-rs.json: refreshed.
  • examples/probe_re95_zero_length_sketch_lines.rs, tools/re/plan_profiles_vs_ifc.py, reports/element-framing/RE-95-zero-length-sketch-lines.md.
  • README, status, support matrix, recon addendum, CHANGELOG.

Testing

Unit tests are banned in this repository; none were added. The existing corpus gate was updated to the new result.

  • Gates: fmt, clippy -D warnings, rustdoc -D warnings, cargo +1.85.0 check, fuzz workspace check (--locked), and tools/ci/verify-real-files.sh --profile ci with both corpora.
  • End to end against Revit's own Core Interior slim export with plan_profiles_vs_ifc.py, as in the table. The 80 slabs are unchanged.
  • Witness replay, both Core Interior artifacts: witness-verdict.py --compare-committed PASS with ifc-lite, ifcopenshell and rvt-rs all "match"; ifc_schema_arity.py --witness-agreement passes.
  • Only those bodies change: Core's 20 shading devices, Snowdon structural's 2 slabs and the MIT house 2024's 1 slab. Snowdon architectural, the four RE1 models, Einhoven, the MIT house 2025, Projeto1 and teste_export_2025 are byte-identical apart from the timestamp.

Legal and contribution hygiene

  • Apache-2.0. Byte observations and comparisons with Revit's exported IFC; no Autodesk code.

Breaking changes

None.

Related issues

Closes #233.


Note

Medium Risk
Changes IFC extrusion profiles for shading devices and a few slabs; logic is narrow and regression-gated, but it alters exported geometry rather than docs-only behavior.

Overview
RE-95 updates sketch plan-profile recovery so zero-length OST_SketchLines records no longer block closure on the RE-50 “recorded ends” path. In sketch_plan_profiles, a line is dropped when its bbox is a point, it has no bounded line geometry, and that point coincides with an end of another sketch line in the same owner.

That unblocks Core Interior’s 20 IfcShadingDevice plates, which previously fell back to axis-aligned record boxes; they now close as 28-vertex rings with one void, matching Revit’s outline in plan_profiles_vs_ifc.py. The same rule also closes three additional slabs on other local corpora (Snowdon structural ×2, MIT house 2024 ×1).

The corpus gate core_interior_2024_slab_plan_profiles now requires all 100 record-backed plates to resolve a profile (not only the 80 slabs). Witness observations for Core Interior are refreshed (more arbitrary profiles with voids, fewer rectangle profiles). Adds probe_re95_zero_length_sketch_lines, tools/re/plan_profiles_vs_ifc.py, and RE-95 documentation.

Reviewed by Cursor Bugbot for commit 360d605. Configure here.

@DrunkOnJava
DrunkOnJava enabled auto-merge (squash) September 28, 2026 08:11
@cursor

cursor Bot commented Sep 28, 2026

Copy link
Copy Markdown

Bugbot couldn't run - usage limit reached

Bugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit.

A user or team admin can review and increase usage limits in the Cursor dashboard.

(requestId: serverGenReqId_6e4ee44a-d108-46c7-9650-41632f4d1d74)

@DrunkOnJava
DrunkOnJava merged commit 6e0dfaa into main Sep 28, 2026
20 checks passed
@DrunkOnJava
DrunkOnJava deleted the feat/sketch-zero-length-lines branch September 28, 2026 08:14
DrunkOnJava added a commit that referenced this pull request Nov 5, 2026
…main, the plates and rooms being outlines before the option landed (#1492)

The count of 158 (132 doors, 6 windows, 20 shading devices) was measured on 2026-09-27. RE-95 (#467) closed the 20 plates' outlines and RE-101 (#473) the rooms' on 2026-09-28; saved_meshes::attach replaces only a body whose profile is not resolved, as it did at 7386177, the first commit on main with --saved-meshes. RE-78 now says so under its first table, and its result line no longer names the shading devices.
DrunkOnJava added a commit that referenced this pull request Nov 6, 2026
… the 20 plates and 116 rooms were outlines before the option landed (#1492) (#1508)

## Summary

RE-78 counted 158 saved-mesh bodies on Core Interior (132 doors, 6
windows, 20 shading devices); `mesh_bodies_vs_ifc` and `rvt-ifc
--saved-meshes` count 138. Nothing changed on `main`: the 158 was
measured on 2026-09-27, when the 20 plates and the 116 rooms were record
boxes. RE-95 (#467, 6e0dfaa) closed the plates' sketch outlines and
RE-101 (#473, 68a44c0) gave the rooms their stored-solid outlines on
2026-09-28, and `saved_meshes::attach` replaces only a body whose
`ProfileResolved` is false, as it did at 7386177, the first commit on
`main` with `--saved-meshes`. No export changes and no body that
measured exact was lost.

## Motivation

#1492: the pages were corrected to 138 of 138 in #1484 without saying
why the 20 stopped being scored.

## Changes

- `reports/element-framing/RE-78-saved-graphics-meshes.md`: the result
line stops naming the shading devices, the Core Interior shading-device
row says it is from before RE-95, and a dated note under the first table
gives the commits and the rule. The Snowdon rows are said to be from the
same earlier tree, local only and not re-run.
- `tools/re/shading_bodies_vs_ifc.py`: `mesh_bodies_vs_ifc` with every
`IfcShadingDevice` selected whatever its `BodySource`, and a count of
the `BodySource` and `ProfileResolved` of the plates before its table.
Run by name through `-f scorers=` (as `slab_bodies_vs_ifc` is); not in
the standing scorer list.
- `changelog.d/research/1492-shading-plates-not-saved-meshes.md`.

## Testing

Unit tests are banned in this repository; none added.

- [x] Commit found by reading, not inferred from dates: `git merge-base
--is-ancestor 6e0dfaa 7386177` and `... 68a44c0 7386177` both hold,
`git show 7386177:src/ifc/saved_meshes.rs` has the `||
profile_resolved` skip (line 75), and PR #420's own body says its Core
Interior row (158) is from before its rebase onto `main`. The Measure
run that body cites (36717043673) exported IFC byte-identical to
`main`'s, so it did not draw the meshes and did not re-measure the 158.
- [x] Measure run 41850769925 (`--saved-meshes`, `e024f03c`): `rvt-ifc`
prints `138 of 138 bounding-box bodies drawn from their saved graphics`,
and `mesh_bodies_vs_ifc` and `saved_meshes_vs_ifc` score 132 doors and 6
windows, no shading device.
- [x] The new scorer, run on Revit's small Core Interior IFC against
itself (one shading device): selects it and scores ratio 1.0000. That
checks the selection, not rvt-rs.
- [x] Measure run 42133202790 (filtered: `core-interior`, `-f
ifc_flags=--saved-meshes`, scorers `plan_profiles_vs_ifc
mesh_bodies_vs_ifc saved_meshes_vs_ifc shading_bodies_vs_ifc`; code
`daf36102`, scorers from `3fb0d241`; success), read back:
- The 20 plates are `BodySource` `partition_element_record_bbox` with
`ProfileResolved` true (the record-box source stays on a body whose
outline is resolved).
- Shape against Revit's body of the same Tag (`shading_bodies_vs_ifc`):
volume within 0.01% on 20 of 20, every vertex within 0.001 ft both ways
on 20 of 20, Revit's vertices on rvt-rs's surface on 20 of 20; the
largest distance 1.539e-06 ft (10 `Floor:Structural Slab`, 10
`Floor:Arch Topping Slab - 2"`).
- Plan outline (`plan_profiles_vs_ifc`): area within 0.1%, vertices and
outline within 0.01 ft, 20 of 20 (and 80 of 80 `IfcSlab`).
- `mesh_bodies_vs_ifc` and `saved_meshes_vs_ifc` score 138 bodies (132
doors, 6 windows), no plate and no room; `rvt-ifc` prints `138 of 138
bounding-box bodies drawn from their saved graphics`.
- Not measured: the plates' saved meshes against Revit's (the option
leaves the plates alone, so no run draws them), and the rooms' shape
(Revit's export holds no spaces to score them against).

## Audit-honesty checklist

- [x] The docs say what was and was not measured; the plates' shape
figure is labelled not yet measured on this head
- [x] A fragment under `changelog.d/research/`
- [x] No emojis, private paths or PII

## Legal and contribution hygiene

- [x] Apache-2.0; no Autodesk source; no new fixtures

## Breaking changes

None. No `src/` change, no export change.

## Related issues

Closes #1492.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant