Skip to content

test: red run for B20 unfilled openings (do not merge) - #583

Closed
DrunkOnJava wants to merge 1 commit into
mainfrom
red/b20-unfilled-openings
Closed

DrunkOnJava wants to merge 1 commit into
mainfrom
red/b20-unfilled-openings

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Oct 3, 2026 •

Copy link
Copy Markdown
Owner

Scratch branch: runs tests/unfilled_openings.rs on main's code to record the red output for #227. Closed and deleted once the output is recorded.


Note

Low Risk
Test-only and CI manifest change; no production exporter logic in this diff.

Overview
Adds a real-file integration test (tests/unfilled_openings.rs) for RE-151 / #227: it exports 2024_Core_Interior.rvt, parses STEP/IFC for IfcOpeningElements that are voided but not filled, and asserts rvt-rs matches Revit’s reference IFC for the 62 slab and shading-device cases (opening Tag and host Tag), with no extras or omissions. The test skips when RVT_PROJECT_CORPUS_DIR or the reference export is missing.

Registers unfilled_openings under the real class in tools/ci/test-targets.txt so CI and the local gate run it. Intended as a red test on current main until exporter work lands.

Reviewed by Cursor Bugbot for commit cbb8186. Configure here.

@DrunkOnJava

Copy link
Copy Markdown
Owner Author

Red output recorded: 62 of Revit's 62 unfilled slab and shading-device openings are missing on main (run 37126870895).

@DrunkOnJava DrunkOnJava closed this Oct 3, 2026
@DrunkOnJava
DrunkOnJava deleted the red/b20-unfilled-openings branch October 3, 2026 13:45
DrunkOnJava added a commit that referenced this pull request Oct 3, 2026
…Revit tags them (#227) (#584)

B20, part 2 of #227 (RE-151).

Revit's export writes each hole in a floor's sketch both as a void of
the slab profile and as an IfcOpeningElement voiding the slab. The
opening uses the hole's outline through the slab's thickness, sits in
the slab's frame, is named Family:Type:<type id>, and is tagged with the
lowest ElementId of the sketch lines on the hole.

**Commits**
- **Test:** tests/unfilled_openings.rs. Red on main in draft #583 (run
37126870895): 62 of 62 missing. The red output is in the commit message.
- **Implementation:**
  - Void loops carry the lowest id of the sketch lines lying on them.
- A Floor (slab or shading device) writes one IfcEntity::VoidOpening per
tagged void.
- The writer places each one in its host's placement, with its own
identity axis (#232), and voids the host. It is not a building element,
so storey containment and the building-element counts are unchanged.
- **Scorer:** opening_boxes_vs_ifc.py also scores unfilled openings, by
their own Tag.
- **Witness:** with the maintainer's approval, the Core Interior rvt-rs
observations are regenerated in their own commit. The surface is
unchanged (6 fields, 0 diffs); the hash moves because of the 62 new
openings.

**Measure** (run 37128180603, head against main)
- Core Interior unfilled openings: 0 to 62 of Revit's 63. All 62 are
within 0.001 ft of Revit's box: 42 IfcSlab, 20 IfcShadingDevice.
- Every other model's outputs are identical to main.
- The 63rd opening is a hole in wall 55840's elevation-profile sketch,
which rvt-rs does not read.
DrunkOnJava added a commit that referenced this pull request Oct 3, 2026
Updates BACKLOG.md: B09 is done (#580), and B20's #227 slab and
shading-device openings are in #584, with their Measure evidence. The
progress log also records which 0.4.x milestones are blocked here, and
why.

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **Low Risk**
> Documentation-only updates to backlog status and progress notes; no
runtime or test code changes in this diff.
> 
> **Overview**
> **BACKLOG.md** is brought in line with recent merges and in-flight
geometry work.
> 
> **B09** moves from *in review* to **done** in the ranked table. The
progress log now records #580 as merged, with the existing red/green
narrative for `tests/element_materials.rs` and Measure gains on Core
Interior and RE1 disciplines.
> 
> **B20**’s progress section is expanded for milestone **#227** and PR
**#584**: slab and shading-device sketch holes as openings (tag = lowest
sketch-line id), with draft **#583** red run, Measure **62/63** openings
within tolerance, and witness regeneration. It also documents the
remaining **63rd** opening (wall 55840 elevation profile, blocked on
edited-profile reading) and a short list of other **0.4.x** milestones
blocked on Snowdon-only models, missing oracles, or format evidence.
> 
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
65de679. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
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