Repository navigation
feat(ifc): cut each door Revit cuts at its rough size at its type's rough opening (#227) (RE-94) - #466
Merged
Conversation
…ough opening (#227) (RE-94)
DrunkOnJava
enabled auto-merge (squash)
September 28, 2026 07:16
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_b263b4f7-8fb0-4673-aa9d-8ca6a2cf04bd) |
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
Doors that Revit cuts at their rough size get that opening (RE-94, #227). Revit's IFC4 export cuts each Snowdon Towers door centred on its origin along its X axis, from the origin up, in one of two sizes:
What decides it is the door's body. Every door cut at its rough size has a body exactly Rough Height tall, and every other door's body is its frame's height. rvt-rs's record box is that body. So a door whose record box is its type's Rough Height tall now takes the rough opening, and Revit's
OverallWidth/OverallHeight.Results
opening_boxes_vs_ifc.py)OverallWidth/OverallHeightequal to Revit'sAlso here:
FILLER_OPENING_FIELDS,FillerOpening,filler_opening_from_fields,FILLER_OPENING_PROPERTIES,filler_type_cut.Changes
type_door_openings(DoorTypeOpening), and a sharedtype_lengths.attach_door_openings, gated onDOOR_ROUGH_HEIGHT_TOLERANCE_FEETand on the type drawing geometry;push_filler_opening, shared with windows;filler_type_cutalso takesIfcDoor, and has the edge tolerance.Testing
Unit tests are banned in this repository; none were added.
cargo +1.85.0 check, fuzz workspace check (--locked), andtools/ci/verify-real-files.sh --profile ciwith both corpora.opening_boxes_vs_ifc.py, as in the table. Windows are unchanged from feat(ifc): cut each window's opening from its type's Width, Height and Default Sill Height (#227) (RE-93) #465 (56 within 0.001 ft).IfcOpeningElementbodies change, and the same 57 doors gain properties and overall sizes, all equal to Revit's.Legal and contribution hygiene
Breaking changes
#465's public names are renamed, as listed above. Neither has been in a release.
Related issues
Refs #227.
Note
Medium Risk
Changes IFC opening geometry and renames pre-release public opening APIs; impact is limited to export accuracy on qualifying doors with regression scoring against Revit IFC.
Overview
Doors that Revit cuts at rough size now get IFC wall openings from the type’s Rough Width × Rough Height, centred on the instance origin, with matching
OverallWidth/OverallHeight—but only when the door’s record box height matches Rough Height (within 1e-3 ft). Frame-height bodies, opening-only types (RE-84), and doors that fail the existing trim guard keep the bounding-box opening.Implementation generalises RE-93’s window path: shared
FillerOpening/FILLER_OPENING_*fields,push_filler_opening,type_door_openings, andfiller_type_cut(windows andIfcDoor). Door attachment runs after opening-only marking.filler_type_cutalso allows opening edges on the box boundary (−1e-6 ft spare) so one more case passes the guard.Snowdon Towers: 54 doors within 0.001 ft of Revit’s openings (was 0); 57 overall sizes match Revit. Other local exports stay byte-identical except timestamps. Docs, support matrix, changelog, probe
probe_re94_door_openings, and RE-94 report added.Reviewed by Cursor Bugbot for commit 7aaab7b. Configure here.