Repository navigation
fix(elements): leave out zero-length sketch lines so Core Interior's shading plates close (#233) (RE-95) - #467
Merged
Conversation
…shading plates close (#233) (RE-95)
DrunkOnJava
enabled auto-merge (squash)
September 28, 2026 08:11
Bugbot couldn't run - usage limit reachedBugbot 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
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.
8 tasks done
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.
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
Core Interior's 20 shading-device plates now carry their outline (RE-95, #233). Each plate owns one zero-length sketch line:
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
2024_Core_Interior_slim.ifc(plan_profiles_vs_ifc.py)Changes
sketch_plan_profilesleaves out a zero-length sketch line whose point is an end of another recorded line. Every other RE-50 condition stays.core_interior_2024_slab_plan_profilesnow requires all 100 Core plates to close, the 20 shading devices as 28-vertex rings with a void (it asserted they did not close).Testing
Unit tests are banned in this repository; none were added. The existing corpus gate was updated to the new result.
cargo +1.85.0 check, fuzz workspace check (--locked), andtools/ci/verify-real-files.sh --profile ciwith both corpora.plan_profiles_vs_ifc.py, as in the table. The 80 slabs are unchanged.witness-verdict.py --compare-committedPASS with ifc-lite, ifcopenshell and rvt-rs all "match";ifc_schema_arity.py --witness-agreementpasses.Legal and contribution hygiene
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_SketchLinesrecords no longer block closure on the RE-50 “recorded ends” path. Insketch_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
IfcShadingDeviceplates, which previously fell back to axis-aligned record boxes; they now close as 28-vertex rings with one void, matching Revit’s outline inplan_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_profilesnow 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). Addsprobe_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.