Repository navigation
fix(ifc): a wall's base is cut at a roof's top only where the roof is a level plate (#1947) - #1953
Conversation
… a level plate, as the top pass requires (#1947) (RE-351)
|
The base context has a second user, the wall-end pass ( |
|
The one export that moves, read. Measure 43540737360, unfiltered with the held-out models, moved only the BIM4LCA concrete housing as built (
So What would make this wall right is reading the roof's slope. A roof drawn as its record box would then become a surface to cut at, as #1967 does for Revit 2025 roofs drawn from their slopes. That is #1480's third point, not this PR. |
…s, not the IFC entity it is exported as (#1480) (RE-351) (#1974) ## Summary The third ask of #1480. The wall top and base passes asked "is this cutter a roof?" by the IFC entity it is exported as (`ifc_type == "IFCROOF"` in `level_underside`). They now ask the Revit record: `export_content` records every `Roof` element record with whether it is a level plate (RE-351: record box exactly its type's layers, plan outline read), as `wall_tops::Roofs`, and `level_underside(id, roofs)` lets any non-Roof record cut and a Roof only when it is a plate. - A Floor exported as `IfcRoof` keeps its cut (it was refused, fail-closed). - A Roof exported as `IfcSlab` is held to the plate rule (it cut at its box's underside). The base pass (`decide_base`, from #1953) shares `level_underside`, so both passes change together. ## Testing Measure, unfiltered with held-out models, against main: dispatched with this PR. Expected: no export moves on models where every roof is exported as `IfcRoof` and every `IfcRoof` is a Roof record; any wall that moves is read against Revit's export before this leaves draft. Clean-room: no format finding; a change of which existing field decides the rule.
Summary
decide_base(wall_tops.rs, #1384) took any roof among the elements a wall's base join names as a level the wall's base stops at, using the cutter'stop. For a roof drawn as its record box that is the box's top, not the roof's. RE-351 section 4 names this flaw, and the top pass already avoids it throughlevel_underside: a roof cuts only where it is one ofplate_roofs(its outline read, its box exactly its type's layers). The base pass now applies the same test, withplate_roofspassed down to it.Item 4 of #1947 (a top cut at a slab or footing whose outline was not read) is not changed here. A footing drawn as its box is its real shape, so requiring an outline there could undo measured cuts; it needs its own measurement.
Testing
Measure 43540737360, unfiltered against
mainwith nordic, r2025, samples and holdout:maincut the base at the box's top, 215.7141 ft, which is 0.007 to 0.009 ft above Revit's roof surface (215.7056 to 215.7075 ft);main, 160.89 ft³ here, and Revit's 42.77 ft³;same-project gatespasses.Refs #1947.
Audit-honesty checklist
changelog.d/fixed/