Skip to content

feat(elements): place curtain panels by the grid they lie on, and panels that hold a wall as curtain walls (#370) (RE-72) - #390

Merged
DrunkOnJava merged 1 commit into
mainfrom
feat/curtain-grids
Sep 24, 2026
Merged

DrunkOnJava merged 1 commit into
mainfrom
feat/curtain-grids

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Sep 24, 2026 •

Copy link
Copy Markdown
Owner

Summary

Two findings about curtain walls on Snowdon Towers (RE-72, #370).

  • The grid names the wall. A curtain panel names the curtain grid it lies on, and the grid's own element data names its curtain wall (a u64 at +85 and again at +478). That wall is Revit's whole on all 18 panels that name such a grid and that Revit aggregates. It settles the panels that name several walls, and the nested curtain wall RE-46 gave the wrong parent (1593696).
  • Panels that hold a basic wall (RE-64's panel walls) are written by Revit as IfcCurtainWall with their own body, nested under the curtain wall they are panels of. rvt-rs wrote them as IfcPlate, and now writes them as Revit does.
Snowdon Towers, tools/re/aggregates_vs_ifc.py main this PR
mullions with Revit's whole 1,595 of 1,595 1,595
panels with Revit's whole 463 of 480 462 of 462
panels holding a wall, with Revit's whole and class 0 of 18 18 of 18
parts Revit aggregates and rvt-rs does not 16 0
parts under a different whole 1 0
curtain walls as Revit's (bodiless or with a body) 42 of 60 60 of 60

Panel 1593696 now also sits on Revit's storey. storeys_vs_ifc.py --any-copy shows one element on a different storey, not two. All 60 curtain walls carry Revit's Name and ObjectType.

Changes

  • src/partition_schema_mvp.rs:
    • scan_curtain_grid_walls and CURTAIN_GRID_WALL_OFFSETS.
    • attach_curtain_walls tries the grid first, then RE-46's named wall, then RE-62's box. A wall a grid names becomes a curtain wall.
    • attach_panel_wall_types marks panels that hold a wall (CURTAIN_PANEL_WALL_FIELD). The last recovery step gives them CURTAIN_PANEL_WALL_CLASS.
  • src/ifc/category_map.rs: CurtainPanelWall maps to IFCCURTAINWALL, with the body kept.
  • examples/probe_re72_curtain_panels.rs, tools/re/aggregates_vs_ifc.py, reports/element-framing/RE-72-curtain-grids.md.
  • Support-matrix row, README curtain walls row, status, CHANGELOG.

Testing

End to end. No tests were added.

  • rvt-ifc on Snowdon against Revit's IFC4 export: aggregates_vs_ifc.py, storeys_vs_ifc.py --any-copy, names_vs_ifc.py, plus a class and body check of all 60 of Revit's curtain walls.
  • Core Interior, RE1, the MIT house (2024 and 2025) and Einhoven: IFC byte-identical to main's apart from the timestamp, so the witness observations don't change.
  • fmt, clippy -D warnings, rustdoc -D warnings, the workspace suite, the corpus tests under --profile ci, cargo +1.85.0 check and the fuzz workspace check.

What stays

47 panels Revit's export leaves out are still exported (#309): 24 empty system panels, and 23 that name a "Solar Wall Window Frame" type object. Railing 1646280 stays on another storey.

Audit-honesty checklist

  • Counts measured against Revit's own export.
  • RE finding: probe, tool and report.
  • No emojis, private paths or personal data.

Legal and contribution hygiene

  • Apache-2.0
  • Clean-room: byte observations, and Revit's own exports as oracles.
  • Snowdon Towers stays local.

Related issues

Refs #370, #309.


Note

Medium Risk
Changes partition-derived aggregation and IFC entity class for curtain parts; Snowdon-only IFC diffs are claimed but logic is heuristic (fixed byte offsets) and affects export structure.

Overview
RE-72 improves curtain-wall parentage and IFC typing so Snowdon Towers matches Revit's export for aggregates and nested panel walls.

Partition recovery now resolves a panel or mullion's curtain wall via the curtain grid: referenced ids without wall records are scanned in partition element data for a matching wall u64 at fixed offsets (CURTAIN_GRID_WALL_OFFSETS). attach_curtain_walls tries that grid link first, then the named wall (RE-46), then bounding-box containment (RE-62), and can promote walls named only from grids to CurtainWall.

Curtain panels that infill a layered basic wall are flagged in attach_panel_wall_types and, at the end of MVP recovery, reclassified to CurtainPanelWall, which category_map maps to IFCCURTAINWALL with geometry—replacing IfcPlate for those 18 Snowdon cases.

Supporting additions: probe_re72_curtain_panels, tools/re/aggregates_vs_ifc.py, RE-72 report, and README/CHANGELOG/support-matrix/status updates reflecting full aggregate parity on Snowdon.

Reviewed by Cursor Bugbot for commit a9dd5e3. Configure here.

…els that hold a wall as curtain walls (#370) (RE-72)

A curtain panel names the curtain grid it lies on, an id with no element record whose own data holds its curtain wall as a u64 at +85 and again at +478. That wall is the one Revit's IFC4 export aggregates the panel under on all 18 panels that name such a grid and that Revit aggregates, including 16 that name several walls and the nested curtain wall RE-46 gave a wrong parent (1593696). attach_curtain_walls now tries the grid first, then RE-46's named wall and RE-62's box.

Revit writes the 18 panels that hold a basic wall (RE-64) as IfcCurtainWall with their own body, nested under the curtain wall they are panels of. They now export as the class CurtainPanelWall, mapped to IFCCURTAINWALL with the body kept; the class is set last so the naming and layer steps still see panels.

On Snowdon Towers every one of the 2,075 curtain parts Revit aggregates now has Revit's whole (16 had none, one another), all 60 curtain walls match Revit's bodiless or bodied ones, and 1593696 moves to Revit's storey. Core Interior, RE1, the MIT house and Einhoven export IFC byte-identical to main.
@DrunkOnJava
DrunkOnJava enabled auto-merge (squash) September 24, 2026 10:39
@cursor

cursor Bot commented Sep 24, 2026

Copy link
Copy Markdown

Bugbot couldn't run - usage limit reached

Bugbot 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_8fc6ad48-1413-487d-b706-9611f2ad624f)

@DrunkOnJava
DrunkOnJava merged commit 452208f into main Sep 24, 2026
22 checks passed
@DrunkOnJava
DrunkOnJava deleted the feat/curtain-grids branch September 24, 2026 10:42
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.

1 participant