Skip to content

Walls 2056705 and 2056770: Revit cuts their ends back above 182.087 ft and steps them, and neither office file draws that #1474

Open

Description

@DrunkOnJava

From #1470 (RE-348, Measure 42101944733). At building permit, BIM4LCA office walls 2056705 and 2056770 keep their record ends. Revit cuts them back by 0.0985 ft above 182.087 ft, and the end rule in #1470 only adds, so it refuses them with BodyEndRefusal joined_wall_face_inside_the_wall. They are 0.339 ft3 over Revit's volume, 0.207 of it the far-end wedge of #1473. This is already so on main; #1470 only names it.

Done when: a wall end Revit cuts back from a joined wall's face is read from the bytes, these two walls' bodies match Revit's above 182.087 ft, and no other wall moves; or a measured negative says what was tested.

Also as built (#1470's second read, Measure 42101944733). The same two walls in the as-built file have the same join list and the same Revit stepped end as wall 2057668, but they take the centreline-body path (partition_wall_centreline, ProfileResolved true, join trim 0), so the end rule never reaches them. They are 15 of 100 plan points taller than Revit on both main and #1470, with no marker or refusal, so nothing counts them. This issue covers both files, and they should say why they keep their ends.

Activity

  1. added
    area:ifc
    priority:P3
    type:bug
    on Nov 5, 2026
  2. changed the title [-]Walls 2056705 and 2056770 at permit: Revit cuts their ends back by 0.0985 ft above 182.087 ft, and the end rule only adds[/-] [+]Walls 2056705 and 2056770: Revit cuts their ends back above 182.087 ft and steps them, and neither office file draws that[/+] on Nov 5, 2026
  3. 10 remaining items

  4. DrunkOnJava commented on Nov 15, 2026

    @DrunkOnJava
    OwnerAuthor

    Permit half done in #2029 (merged as 5ff85692). read_end now reads an end that a joined wall's face lies inside of over a band of height, and pulls the end back to it. At building permit, walls 2056705 and 2056770 now match Revit above 182.087 ft. Measure 43665221220 at 26b45a56:

    • Their top over the 0.0807 ft² strip goes from 183.727 to Revit's 182.087 ft.
    • Their volume goes from 27.3554 to Revit's 27.2229 ft³ on each.
    • joined_wall_face_inside_the_wall refusals go from 2 to none.
    • No wall that equalled Revit's moves (579 of 589 equal over the plan, every other per-wall line the same).

    The timber office's 5 walls with this refusal are still refused, now as joined_wall_faces_overhang_the_lower_end. That text is the only change in their exports.

    Still open: the as-built half. In the as-built file the same two walls take the centreline-body path (partition_wall_centreline), which the end rule never reaches. They stay 15 of 100 plan points taller than Revit, with no marker or refusal. This issue stays open for that.

  5. DrunkOnJava commented on Nov 15, 2026

    @DrunkOnJava
    OwnerAuthor

    As-built half: a measured negative (#2038, closed unmerged). Letting the end rule read walls drawn along their location line, with the join reach taken as the trim, reaches 2056705 and 2056770 as built. They are then 6 of the file's stepped ends instead of 4, and nothing else in the 120 exports moves. But the end it reads is not Revit's:

    • Revit's end of 2056705 reaches 183.071 over 0.0943 ft² and only 179.298 over the 0.1601 ft² strip next to 1493966's face.
    • The rule draws the strip to 182.087, the top of 1493966, the wall its record joins there. Revit's 179.298 is not the top of 1493966 (its levels in Revit's export are 182.087, 180.610, 179.134, 178.150, 176.509 and 176.181), and no other wall the record joins stands to it.
    • The volume would go from 30.8201 to 30.4961 ft³ against Revit's 30.0496, with the end then labelled as read.

    As built, 1493966 is type KS-1; at permit it is US-7, where #2029 gets these walls exactly. The open question for this half is what Revit's 179.298 is. It is no wall's top in the join list, so it may be a layer of 1493966 or of the walls beneath. Details and runs are on #2038; its tip is archived as refs/archive/2026-11-15/cited/e1e6696298c8.

  6. DrunkOnJava commented on Nov 15, 2026

    @DrunkOnJava
    OwnerAuthor

    What Revit's 179.298 is, and where its body is in the file (office as built). Research tools are on research/1474-end-height (decd3c14, archived at refs/archive/2026-11-15/cited/decd3c14a79d).

    1. 179.298 is the bottom of wall 3490093. tools/re/height_neighbours_vs_ifc.py (Measure 43697213576) lists every element of Revit's export with a horizontal edge at each of the end's heights, within 3 ft of 2056705 in plan:

      • At 179.298 the only element besides 2056705 itself is Basic Wall:KS-3:3490093, z 179.298 to 183.071.
      • At 182.087: 1493966's top, floor 1384047's top and 3490093.
      • At 183.071: 3490093's top, 2056741, 1344124's bottom and 2056705 itself.

      3490093 runs along 1493966's line, x 121.5 to 341.0 ft at y 74.957, 1.312 ft thick (probe_re70_wall_join_lists, Measure 43697932669). So over the strip beside 1493966's face, Revit ends 2056705 where 3490093 stands, from that wall's bottom up. 3490093 is also on RE-320 §7's list (Walls drawn taller than Revit's body on 78 of the BIM4LCA office's walls (RE-257) #1067).

    2. No record of either wall names the other.

      • 3490093's join lists are empty, and 2056705's name only 2056741.
      • probe_1474_cut_pairs (Measure 43698432815) prints every cut, join and pair object of 2056705, 2056770, 3490093, 1493966 and 2056741. 3490093's CutPairGStep and CleanPairGStep name 1498471, and its AutoJoinExclusionsCell names 1347201. 2056705 has a JoinToRoofGStep (roof 2057322) and a WallJoinTweakGStep naming 2056741, and no cut pair.
      • So the cut is not a join rvt-rs can read from these records.
    3. The mesh Revit saved for each wall is Revit's body. probe_1474_wall_saved_mesh (Measure 43698972272): 2056705's saved graphics close to 30.0496 ft³, Revit's volume to four places. Its upward faces are at 179.298 over 0.1601 ft² and at 183.071 over 0.0943 ft², each Revit's figure. 2056770's are the same (30.0496 ft³, the same two faces). Both decode as partial_saved_graphics: 10 primitives, 32 triangles and 10 unbounded faces. That is why no current path takes them, since a wall's partial mesh is refused (Batch 9 export findings still to fix: 12 confirmed, 6 to settle with a run #1947).

    So the as-built half has a source with Revit's answer: the walls' own saved meshes. A rule would draw a wall from its saved mesh where the end rule cannot read its end and the mesh closes to a solid. It would have to be measured on every wall that path would take, with the partial status narrowed to what these 10 unbounded faces are. Nothing is written yet. Next is reading what makes the two meshes partial, and whether their 32 triangles are complete.

  7. DrunkOnJava commented on Nov 15, 2026

    @DrunkOnJava
    OwnerAuthor

    Correction to point 3 above. The two meshes are not refused for being partial.

    • partial_saved_graphics comes from native_saved_scene: a mesh is partial when it has any decoder diagnostic or any unbounded face. These two have no diagnostic and 10 unbounded faces. Those are faces whose mesh did not decode and that are not observed empty trims (native_saved_mesh, the None branch of a face).
    • saved_meshes::wall_mesh_partial, which keeps a wall's mesh out of its quantities (Batch 9 export findings still to fix: 12 confirmed, 6 to settle with a run #1947), reads the diagnostics only, so it does not refuse these. Their 32 triangles give Revit's 30.0496 ft³ without those 10 faces. That is a volume match, not a closure test: whether every edge is shared by two triangles is not checked yet.

    So nothing that is read refuses these meshes. Two paths already draw a body from its saved mesh beyond a box:

    No path takes the mesh of a wall like 2056705. Before one is written, three things are needed:

    • what the 10 faces are, and a per-mesh closure test;
    • a census of every wall with a Revit export, comparing its mesh with Revit's body and split by Revit's representation type, since a saved mesh is the wall as Revit drew it and not necessarily what its exporter wrote;
    • a predicate readable from the file that selects such walls, with its counts per model.
  8. DrunkOnJava commented on Nov 15, 2026

    @DrunkOnJava
    OwnerAuthor

    Census: a wall's saved mesh against Revit's body, every reference model. Probe probe_1474_wall_mesh_census and its scorer wall_mesh_census_vs_ifc (666b962d, archived at refs/archive/2026-11-15/cited/666b962db1f9; Measure 43699787856).

    For each wall Revit's export writes, its saved mesh counts as equal when all three hold:

    • it closes, every edge shared by two triangles;
    • its volume is within 0.1% of Revit's body, openings subtracted;
    • every box corner is within 0.01 ft.

    Otherwise it counts as not. Split by how Revit's export writes the wall:

    model Tessellation: equal / not SweptSolid: equal / not no triangles
    nordic-housing-concrete-as-built 80 / 35 145 / 92 17
    nordic-housing-concrete-permit 67 / 25 140 / 93 20
    nordic-housing-timber-as-built 94 / 37 42 / 175 19
    nordic-housing-timber-permit 94 / 35 34 / 167 25
    nordic-office-as-built 240 / 67 119 / 155 26
    nordic-office-permit 243 / 45 131 / 167 3
    nordic-office-timber-as-built 111 / 47 101 / 351 1
    nordic-office-timber-permit 104 / 49 99 / 334 0
    core-interior 105 / 0 255 / 0 0
    nordic-housing-terrain-concrete 0 / 0 14 / 0 0
    nordic-housing-terrain-timber 0 / 1 12 / 1 0
    nordic-office-terrain-concrete 2 / 0 0 / 0 0
    nordic-office-terrain-timber 2 / 0 0 / 0 0
    re1-architecture 0 / 0 6 / 1 0
    re1-electrical 0 / 0 0 / 0 0
    re1-mechanical 0 / 0 0 / 0 0
    re1-plumbing 0 / 0 0 / 0 0
    all 41 models 1187 / 341 1191 / 1536 111

    R2025 models not listed: every wall closed and equal

    • Equal everywhere on Autodesk's and the Revit 2025 models. Core Interior is 360 of 360, the 24 R2025 models are equal throughout, and RE1 differs on one wall.
    • Not equal on a large share of the BIM4LCA files. Most of it is walls Revit writes as extrusions: 1,536 not, against 1,191 equal, over all models. Many of those differ by exactly 1.3288 ft at one box corner, some with equal volume. That is what RE-340 §9 predicted: a saved mesh is the wall as Revit drew it, and its exporter builds an extruded wall from the thickened, trimmed axis.
    • Walls Revit writes as a Tessellation mostly match: 1,187 equal, 341 not.
    • 2056705 and 2056770 are both closed and equal, each 30.0496 ft³ with no open edge.

    So a rule that draws every wall, or every wall Revit writes tessellated, from its saved mesh would be wrong on hundreds of walls. Revit's representation choice is not in the file either. Drawing these two walls from their meshes needs a predicate read from the file that picks them and never picks a wall whose mesh is not Revit's body. No such predicate is in hand. Nothing is written. This half stays a measured gap with its source located: wall 3490093 standing in the strip, and the walls' own meshes holding Revit's answer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:ifcpriority:P3type:bug

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions