Repository navigation
feat(ifc): the opening a door cuts in a second wall carries its Depth and Height (#1165) - #1784
Merged
DrunkOnJava merged 9 commits intoNov 12, 2026
Merged
Conversation
…t computes (RE-247)
…nd none different (#1016)
…n axis its Span and Length (#1016)
…ingElementBaseQuantities.Depth (#1165)
…t too (#1165) Read on Revit's export of the BIM4LCA office as built: on the four such openings read, Width, Height and Depth are 100/2100/810 and 300/2100/1210 mm, the same way round as on any rectangular opening. Height is the outline's (2.1000 m on all four). Width is left out: the outline along the wall is 0.1000 and 0.3002 m, 0.2 mm off Revit's on two of the four.
Closed
7 tasks done
DrunkOnJava
marked this pull request as ready for review
November 11, 2026 21:40
…height-2 # Conflicts: # docs/supported-profile.md
…5-door-second-wall-opening-quantities-2
DrunkOnJava
deleted the
feat/1165-door-second-wall-opening-quantities-2
branch
November 12, 2026 01:05
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
The 25 openings of the BIM4LCA office as built whose
Qto_OpeningElementBaseQuantities.DepthRevit's export writes and rvt-rs's does not are the openings rvt-rs writes for a door that also cuts a second wall (ifc::wall_cut_openings'sdoor_cut,quantities: falsesince RE-338). They are written with no quantity set at all. This change writes theirDepth, the extent the opening is extruded across that wall by, and leaves theirWidthandHeightout.Evidence
evidence/nordic-office-as-built/qtos_vs_ifc.txt:Depth: 308, equal 283, different 0, missing 25, all 25on IfcOpeningElement x25; a further 59 openings rvt-rs does not write are counted apart, andrvt-rs quantities Revit does not write: 0.evidence/nordic-office-as-built/unfilled_openings_vs_ifc.txt, by kind of cutter and host:IfcCurtainWall in IfcWall27 of 27,IfcFireSuppressionTerminal in IfcWall39 of 39,none in IfcWall30 of 30,none in IfcSlab36 of 36 andIfcSlab in IfcSlab1 haveDepth equal;IfcDoor in IfcWallis the one kind withrevit: 39, written: 25andDepth in Revit's: 25but noDepth equalline — rvt-rs writes those 25 openings and noDepthon any.Depththe writer already writes) + 96 of the 99 wall-cut openings it writes (three curtain walls are written that Revit's export lacks); 283 + 25 = 308. So the 25 are precisely the door-in-second-wall openings, and Revit writesDepthon every one of them.Depthto be the extrusion's depth, i.e. the extent the opening passes through the wall by, which is whatthickness_feetalready is for a wall-cut opening. On a door's second-wall opening that extent is the door's own width:revit.ifc's opening#77141(Tag 1383546, unfilled, voidingBasic Wall:VS-2:1352055) carriesWidth100,Height2100,Depth810 mm — the profile is the second wall's plane (the door's own wall thickness by the door's height) extruded 810 mm across it, and 810 mm is the door's own opening's across extent, which RE-338 §3 measured as the door's own opening box (equal to rvt-rs's box within 0.01 ft on 25 of 28 as built, and on all 25 these openings are the ones written).Depth= 3048 mm on exactly the 11 openings where the second wall runs along the door's wall, which rvt-rs leaves out (door_second_wall_parallel_to_door_wall, 9 of the 14 it leaves out of the 39).Depthis written on every wall-cut opening whose host holds that quantity (all 607 walls that rvt-rs writes hold aWidthhere, and with--no-base-quantitiesthe list is empty and nothing is written).WidthandHeightstay missing on the 25: Revit's export swaps them on a door's opening (RE-244, RE-235 §5) and nothing read says it does not on this one, even though#77141's are the rectangle's extents. SoWidth152 (missing 56) andHeight152 (missing 56) are unchanged, and the 14 door openings rvt-rs does not write are untouched.Changes
src/ifc/step_writer.rs: the wall-cut opening's quantity set is now written where its host holds the quantity, not only whereWidthandHeightare written too;WidthandHeightare still pushed only for the rectangular, cabinet and curtain-wall openings, so their output is byte for byte what it was, and a door's second-wall opening gains a set holdingDepthalone.src/ifc/entities.rs,src/ifc/wall_cut_openings.rs: the doc comments ofquantitiessay why that opening takes only itsDepth.docs/supported-profile.mdanddocs/release-1.0-criteria.md: the sentences listing what an opening a door cuts in a second wall carries gain theDepth, and say that itsWidthandHeightstay out.changelog.d/added/1165-door-second-wall-opening-depth.md: new fragment.Measured
One Measure run scored this change together with nine others it was drafted beside (run 43086493417, head
f5f54467, base5e3ac5b0: every model, with the BIM4LCA office and housing, the Revit 2025 models, Autodesk's samples of every release, rac_advanced, BIMcollab and the held-out pairs; every shard and both same-project gates passed; rows registered on #1636 before it was read). Each change writes a value of a different name, so the rows below are this change's alone. Both sides' exports were kept, and the 58 sample saves, which no Revit export scores, were compared value by value. After the second read the stack was rebuilt onmainas seven changes (the pipe change left it, and the roof and floor-opening rules were narrowed to square-cornered outlines) and measured once more in full (run 43100937918, head53c19487againste8a99d03, rows registered first, read on #1636): all shards and both same-project gates pass, "different" and "values Revit does not write" are unchanged on every model, and the rows below repeat except where a line says otherwise.The first draft wrote
Depthalone.Heightwas added after reading four such openings in Revit's export of the office (Width, Height and Depth 100 / 2100 / 810 and 300 / 2100 / 1210 mm, the same way round as on any rectangular opening; the table is in the last comment on #1749).Depthequal, beforeHeightequal, beforeDepthvalues different before and reads the same 9 after.Still open
Width, which Revit's export writes too, stays out: Revit's is the thickness of the wall the door stands in, and rvt-rs's outline is 0.2 mm wider than that on two of the four openings read, which the scorer would count as different.Stack: this is change 5 of 7; each branch holds the ones before it, so its own diff is its last commits until those land. First draft: #1755, then #1779.
Testing
gh workflow run measure.yml --ref main -f ref=<this head> -f base=e8a99d03be8a76a2c8871ea8cc28d036653ec6e2 -f nordic=true -f r2025=true -f samples=true -f racadv=true -f bimcollab=true -f holdout=true.mainhas moved since those runs (perf(research): a face cut by its trim is cut across at the chord's v steps and at the v of the trim's own steps and cusps, and the triangles of 25 of 126 exports fall (#1737) (RE-437) #1769 re-meshes trimmed faces, and fix(ifc): an oblique mullion at an end no longer leaves its mullion out, a partner end beside one or a mullion across inside is kept, and a joint centred under a mullion across is hidden: the offices gain 107 to 108 NetSurfaceArea values and 3 of the 4 different at permit are Revit's (#1767) (RE-438) #1771, feat(ifc): a hollow-section column's NetVolume is the volume Revit computes (#1016) (RE-247) #1773, feat(ifc): a building element proxy gets its NetVolume from its saved mesh (#1016) #1781, feat(ifc): a curtain mullion turned near 45 degrees about its own axis gets its Span and Length (#1016) #1782, feat(ifc): a wall's, ramp's, light fixture's and pipe segment's PredefinedType is its own or its type's (#1713) #1787 and feat(ifc): honour an "Export to IFC As" of IfcGeographicElement (#1772) #1789 landed). This head,44bafde9, is built on feat(ifc): an Area's Qto_SpaceBaseQuantities.Height is its body's height (#1016) #1783's merged head0f82cb8e, so until feat(ifc): an Area's Qto_SpaceBaseQuantities.Height is its body's height (#1016) #1783 lands its diff againstmainalso shows feat(ifc): an Area's Qto_SpaceBaseQuantities.Height is its body's height (#1016) #1783's change; its own change (0f82cb8e..44bafde9) is this pull request's two commits and nothing else (byte-equal outsidedocs/, word-equal inside). It is armed only after feat(ifc): an Area's Qto_SpaceBaseQuantities.Height is its body's height (#1016) #1783 has merged. Measure 43108424934 measured the nine batch changes together onmainwith perf(research): a face cut by its trim is cut across at the chord's v steps and at the v of the trim's own steps and cusps, and the triangles of 25 of 126 exports fall (#1737) (RE-437) #1769 (3f2a04c4againste7ac68e7, rows registered on List the shipped rules that rest on one project, and the second model that could test each #1636 first): every count above repeats, and the same-project gates pass.Audit-honesty checklist
changelog.d/Legal and contribution hygiene
Breaking changes
None.