Repository navigation
feat(ifc): a floor's sketch holes are openings voiding it, tagged as Revit tags them (#227) - #584
Merged
Merged
Conversation
…he export (#227) RE-151: Revit's export of 2024_Core_Interior.rvt writes 62 openings no door or window fills in its floor slabs and shading devices, each tagged with a sketch line of a hole in its host's sketch. The new real-file target checks that rvt-rs writes every one, with Revit's Tag and voiding the element with the host's Tag, and no unfilled opening Revit does not. Red on main (draft #583, run 37126870895, Corpus health tier 2): test core_interior_unfilled_openings_are_revits ... FAILED thread 'core_interior_unfilled_openings_are_revits' panicked at tests/unfilled_openings.rs:119:5: 62 of Revit's 62 unfilled slab and shading-device openings (Tag, host Tag) are not in rvt-rs's export: [(20339, Some(20311)), (20940, Some(20912)), (20954, Some(20953)), (25437, Some(25409)), ..., (71652, Some(71651)), (71747, Some(71719))] test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 4.18s
…Revit tags them (#227) RE-151: Revit's export writes each hole in a floor's sketch twice: as a void of the slab's profile, and as an IfcOpeningElement voiding the slab, with the hole's outline through the slab's thickness, placed in the slab's frame, named Family:Type:<type id>, and tagged with the lowest ElementId of the sketch lines on the hole. - element_record_plan_profiles: tag_voids gives each void loop the lowest id of the sketch lines lying on it, by a point of each line on the edge it makes (a box-solved line's box centre, an exact line's first chord midpoint). PlanProfile carries the tagged voids, written to and read back from m_plan_profile_void_openings. - partition_schema_mvp: the exact-ends sketch path tags voids too. - export_content: a Floor (slab or shading device) writes one hosted IfcOpeningElement per tagged void, through the RE-84 opening-only path: it voids its host and is not contained in a storey.
…ot building elements (#227) An opening is not a building element: as IfcOpeningElement building elements the 62 openings were counted by the storey containment check (tests/iter_elements_typed.rs: unbound: {"IFCOPENINGELEMENT": 62}). IfcEntity::VoidOpening carries the host, tag, name, and outline in the host's frame; the writer places each opening in its host's placement, as Revit's export does, and voids the host with an IfcRelVoidsElement.
…he 62 sketch-hole openings (#227) With the maintainer's approval. Copied from Measure run 37128180603 at db63e7a. The witness surface is unchanged (6 fields, 0 diffs); the STEP entity counts gain the 62 openings and their IfcRelVoidsElement, so the observation hash moves from 02d20dd6... to 6ae889e0...
DrunkOnJava
enabled auto-merge (squash)
October 3, 2026 14:42
This was referenced Oct 3, 2026
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 -->
DrunkOnJava
added a commit
that referenced
this pull request
Oct 3, 2026
…ir host's sketch (#227) (#586) The probe and report behind #584. Every one of Core Interior's 63 unfilled openings is tagged with a sketch line whose owner is the opening's host. The tag is the lowest id of the sketch lines on the hole. Measure run 37126299322. <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Low Risk** > Adds documentation and an optional diagnostic example only; no library or export behavior changes in this diff. > > **Overview** > Adds **research artefacts for RE-151** (#227): a Cargo example and an element-framing report that explain how Revit tags the 63 Core Interior openings that have no door/window fill. > > The new **`probe_re151_unfilled_openings`** example pairs a model with its reference IFC (`*_slim.ifc` or `*.ifc`), collects unfilled `IfcOpeningElement`s and their voided hosts, then resolves each opening `Tag` in partition record chains (class, category, bbox, references) and lists sketch lines owned by relevant hosts. Output is JSON summaries plus sample rows for measurement workflows. > > The report **`RE-151-unfilled-openings.md`** records the conclusion: every such opening is a **`CurveElem` sketch line** (`OST_SketchLines`, −2000045) whose **owner is the host**, with the opening tag equal to the **lowest ElementId on the hole’s sketch loop**; it notes how Revit duplicates hole geometry in IFC and that follow-up export work landed in **#584** (`tests/unfilled_openings.rs`), with the single wall case still blocked on elevation-profile decoding. > > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 5b60313. Configure [here](https://www.cursor.com/dashboard/bugbot).</sup> <!-- /CURSOR_SUMMARY -->
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.
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:, and is tagged with the lowest ElementId of the sketch lines on the hole.
Commits
Measure (run 37128180603, head against main)