Skip to content

red: B66 curtain part materials (scratch, do not merge) - #655

Closed
DrunkOnJava wants to merge 1 commit into
mainfrom
red/b66-curtain-materials
Closed

DrunkOnJava wants to merge 1 commit into
mainfrom
red/b66-curtain-materials

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Oct 4, 2026 •

Copy link
Copy Markdown
Owner

Red run for B66's test alone; its output goes into the item PR's test commit.


Note

Low Risk
Only adds a corpus integration test and CI target listing; no exporter or library behavior changes in this diff.

Overview
Adds B66 corpus verification that curtain wall mullions (IfcMember) and panels (IfcPlate) get the same material name sets as Revit’s IFC export on RE1 Architecture (10 mullions with “Aluminum 2”, 2 panels with “Glass”).

The new tests/curtain_part_materials.rs exports the RVT via RvtDocExporter, parses STEP like element_materials.rs (IfcRelAssociatesMaterial → reachable IfcMaterial names), and compares by element Tag to RE1-Architecture.ifc. It skips when RVT_PROJECT_CORPUS_DIR or the corpus files are missing.

Registers curtain_part_materials under the real class in tools/ci/test-targets.txt so CI runs it with the other real-file gates.

Reviewed by Cursor Bugbot for commit 7c4d210. Configure here.

@DrunkOnJava

Copy link
Copy Markdown
Owner Author

Red output recorded in #657's test commit.

@DrunkOnJava DrunkOnJava closed this Oct 4, 2026
@DrunkOnJava
DrunkOnJava deleted the red/b66-curtain-materials branch October 4, 2026 16:33
DrunkOnJava added a commit that referenced this pull request Oct 4, 2026
…ype holds (B66) (#657)

RE-166: a mullion type's data object holds its material at +135 (every
SysMullionFamSym object of the 2024 to 2026 samples and RE1), RE1's
panel type at +139. Red on draft #655 (12 of 12 curtain parts without
Revit's material); output in the test commit.

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **Medium Risk**
> Changes IFC material output for curtain parts via version-specific
binary offsets in partition data; behavior is gated to 2024–2026 and
skips elements that already have a type material.
> 
> **Overview**
> **Curtain wall mullions and panels** now get **`TypeMaterial`** on IFC
export when they did not already have one, using the material stored on
their **mullion/panel type**—matching Revit’s material associations
(RE-166 / B66).
> 
> A new **`partition_curtain_materials`** pass scans partition streams
for **`SysMullionFamSym`** and **`SysPanelFamSym`** type objects on
**Revit 2024–2026**, reads the material **ElementId** at fixed byte
offsets (+135 mullions, +139 panels), and only accepts IDs that appear
in the file’s material set. **`attach_curtain_materials`** in the schema
MVP pipeline maps each **`CurtainWallMullion`** / **`CurtainWallPanel`**
instance via **`TypeId`** to that type material’s **name** and adds the
same **`TypeMaterial`** field other products use.
> 
> A **corpus integration test** (`curtain_part_materials`) exports RE1
Architecture and asserts every **`IfcMember`** / **`IfcPlate`** tag has
the same material name set as Revit’s reference IFC; CI runs it as a
**real** target.
> 
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
69a3822. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
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