Skip to content

feat(ifc): a face-hosted door or window cuts the opening its symbol's solid makes in its host, with Revit's GlobalId (#824) (RE-225) - #997

Merged
DrunkOnJava merged 11 commits into
mainfrom
feat/824-hatch-openings
Oct 25, 2026
Merged

DrunkOnJava merged 11 commits into
mainfrom
feat/824-hatch-openings

Conversation

@DrunkOnJava

Copy link
Copy Markdown
Owner

Summary

A door or window hosted on a face of another element cuts the opening its symbol's solid makes in that element, as Revit's export writes it. On the BIM4LCA office that is roof 2991742's four 600 mm hatch openings, which were the whole of #824. They are written at Revit's place to 0.0001 ft, through the roof's thickness, with Revit's names, order and GlobalIds (RE-225).

Closes #824.

Motivation

#824: Revit's export cuts four openings in roof 2991742 where its face-hosted roof hatches sit, and rvt-rs cut none. The hatches' symbols cut no loop (RE-215), and RE-221's dump showed no link from a hatch to the roof.

Changes

  • src/native_symbol_cuts.rs: face_hosted_cuts, in two passes, reads three things for each door and window.
    • The sketch plane its m_hostId names.
    • That plane's host, GeomOnPlaneRef.m_geomRef.m_elemId. RE-221's dump dropped this because it sits inside a struct.
    • The solid its symbol cuts, m_complexCutGeoms, whose faces are meshed with native_saved_mesh::face. The unbounded planes in it add nothing.
  • src/ifc/mod.rs: attach_hosted_cut_openings places each solid by the instance's transform (RE-87). Each gated footprint becomes an opening of the host, extruded through the host's thickness in the host's frame.
    • Gates: the solid is an upright prism whose corners are its plan hull, it spans the host's whole thickness, and the host is one extruded element.
    • Each opening is tagged with the host's ElementId and named <host name>:<n>, numbered from the cutting instance with the highest ElementId.
  • src/ifc/entities.rs: IfcEntity::HostedCutOpening, a new variant of the #[non_exhaustive] enum, so not a break.
  • src/ifc/step_writer.rs: writes it as it writes a VoidOpening, with Revit's GlobalId: revit-ifc OpeningUtil's hash of IfcOpeningElement:<n>:<host GlobalId> (CLEANROOM.md source 5; the key's wording is reproduced as that identifier needs).
  • reports/element-framing/RE-225-symbol-cut-solids-and-hatch-openings.md, with these probes and scorers:
  • ROADMAP and docs/contribution-map.md drop BIM4LCA office: roof 2991742's four hatch openings are not cut (face-hosted hatches; their symbol's cut geometry is unread) #824. changelog.d/added/hatch-openings.md.

Testing

Unit tests are banned in this repository: do not add them. Show the change working end to end on real files instead.

  • tools/check-local.sh: CI.
  • Verified end to end on real Revit files: Measure 40239027178, this branch against main, -f nordic=true -f keep_ifc=true, with host_openings_list on both exports.
    • On both office files, rvt-rs's four openings in roof 2991742 match Revit's: GlobalIds (3YaXsZK7DWAzH8QHq$vLLn, 2_vAcrRri2S49gzbvjYOW1, 0DdCEMitnLfOdlYT2LDb3G, 2bZgoAmVzSxbOlfXcVBbmd), names, order, site-frame box to 0.0001 ft, and depth of 0.973 m and 0.970 m.
    • Core Interior, Einhoven and the four RE1 models export byte for byte as before. The Core Interior witness is unchanged.
  • N/A: performance (two extract_graphs passes selecting a few dozen ids).

Audit-honesty checklist

Legal and contribution hygiene

  • Apache-2.0
  • No Autodesk proprietary content. Format facts come from the file's bytes. revit-ifc was read for what its export does, and only the hash key's wording is reproduced, as CLEANROOM.md allows.
  • No fixtures

Breaking changes

None: IfcEntity is #[non_exhaustive].

@DrunkOnJava
DrunkOnJava enabled auto-merge (squash) October 25, 2026 22:29
@DrunkOnJava
DrunkOnJava merged commit 45bedec into main Oct 25, 2026
28 checks passed
@DrunkOnJava
DrunkOnJava deleted the feat/824-hatch-openings branch October 25, 2026 22:47
DrunkOnJava added a commit that referenced this pull request Oct 25, 2026
…s last two doors (#810) (RE-229) (#998)

## Summary

Records RE-229, which RE-225 (#997) cites: no length a door's or
window's symbol stores is the width Revit's export gives the BIM4LCA
office's doors 1756089 and 1765267, so #810 keeps them open. The same
run shows the stored lengths add no source rvt-rs lacks.

## Motivation

RE-218 sizes every door and window of the office except two doors,
5.8629 ft wide in Revit's export, whose record box is 5.9766 ft and
whose symbol's cut solid is 3.1168 ft (RE-225). revit-ifc takes the
width from the closed `ExporterIFCUtils.GetMinSymbolWidth`, so the
symbol's stored parameters were the remaining place to look (#810).

## Changes

- **`examples/probe_re229_symbol_lengths.rs`**: every length a door's or
window's symbol type stores, by family parameter caption or
BuiltInParameter id.
- **`tools/re/symbol_lengths_vs_ifc.py`**: per parameter, how often its
value is Revit's `OverallWidth` or `OverallHeight`, and the doors and
windows no stored length gives the width of.
- **`reports/element-framing/RE-229-symbol-lengths.md`**: the measured
table and the negative.
- **`changelog.d/research/symbol-lengths.md`**.

## Testing

Unit tests are banned in this repository: do not add them. Show the
change working end to end on real files instead.

- [ ] `tools/check-local.sh`: CI.
- [x] Verified end to end on real Revit files: Measure
[40230195608](https://github.com/DrunkOnJava/rvt-rs/actions/runs/40230195608),
`-f nordic=true -f r2025=true`, probe and scorer as committed.
- Office as built: `Opening_Width` is Revit's width on 269 of 269
windows and 163 of 163 doors, `Aukkoleveys` on 24 of 24; 69 doors store
no length equal to their width.
- Core Interior and RE1 Architecture: the built-in -1001301 and -1001300
are the width and height of every door and window.
- Doors 1756089 and 1765267: no stored length, and no sum or difference
of two, is 5.8629 ft.
- N/A: performance (no library change).

## Audit-honesty checklist

- [x] README / docs reflect the current state after this PR (nothing
user-visible changes)
- [x] The research entry is a fragment under `changelog.d/`
- [x] Resolved limitations updated (none resolved; #810 stays open)
- [x] The negative is stated, not rounded away
- [x] Commit messages describe what changed and why
- [x] No emojis in code, docs, or commit messages
- [x] No private paths, personal email addresses, or internal jargon in
committed files
- [x] Reverse-engineering finding: probe, report and measured counts
against Revit's own export

## Legal and contribution hygiene

- [x] Apache-2.0
- [x] No Autodesk proprietary content. The finding comes from public
byte observation and Revit's own IFC exports. revit-ifc was read for
what its export does and not copied (CLEANROOM.md source 5).
- [x] No fixtures

## Breaking changes

None.
DrunkOnJava added a commit that referenced this pull request Oct 25, 2026
…deleted branch (#1001)

## Summary

Sixteen reports' reproduce commands named a branch that was deleted when
it landed (`feat/mullion-span`, `feat/bare-named-parameters`,
`feat/wall-extend-to-structure`, `feat/824-hatch-openings`,
`re/re155-reference-slots` ... `re/re163-content-documents`,
`re/878-2015-episodes`, `re/223-flag-census`,
`docs/re229-symbol-lengths`), so `gh workflow run` refused them. Each
now names the commit that landed (`--ref main -f ref=<sha>`, and `-f
base=<parent>` where it measured a change against `main`).
CONTRIBUTING's reverse-engineering steps state the rule.

## Motivation

A report's reproduce section is how its counts are checked again.
Measure's `ref` input takes a commit, and every probe and scorer these
reports name is on `main`.

## Changes

- **`reports/element-framing/RE-155` to `RE-163`, `RE-208`, `RE-219`,
`RE-225` to `RE-229`**: branch refs replaced by the squash commits of
#601, #606, #611, #620, #627, #628, #630, #632, #642, #928, #963, #993,
#994, #996, #997 and #998. RE-224's `re/saved-mesh-status` is kept: it
is the ungated branch its scorer needs, and it stays.
- **`CONTRIBUTING.md`**: a report's reproduce commands name a commit,
never a branch.

## Testing

Unit tests are banned in this repository: do not add them.

- [ ] `tools/check-local.sh`: CI.
- [x] Every probe and scorer the changed commands name exists on `main`
(checked file by file), and each commit is the merge of the pull request
that added the report.
- N/A: no code change.

## Audit-honesty checklist

- [x] README / docs reflect the current state after this PR
- [x] No user-visible change, so no changelog fragment
- [x] Commit messages describe what changed and why
- [x] No emojis in code, docs, or commit messages
- [x] No private paths, personal email addresses, or internal jargon in
committed files

## Legal and contribution hygiene

- [x] Apache-2.0
- [x] No Autodesk proprietary content
- [x] No fixtures

## Breaking changes

None.
Repository owner deleted a comment from chatgpt-codex-connector Bot Oct 31, 2026
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.

BIM4LCA office: roof 2991742's four hatch openings are not cut (face-hosted hatches; their symbol's cut geometry is unread)

1 participant