Skip to content

M4-06: Recover materials and compound assemblies #34

Closed

Description

@DrunkOnJava

Created from the roadmap audit in TODO.md.

Source: https://github.com/DrunkOnJava/rvt-rs/blob/main/TODO.md#L617
Tracking commit: 1ec8105

Scope

Labels: priority:P1, type:feature, area:elements, area:ifc

  • Decode Material records.
  • Decode wall/floor/roof layer stacks.
  • Emit:
    • IfcMaterial
    • IfcMaterialLayerSet
    • IfcMaterialLayerSetUsage
  • Include colors/transparency where available.

Acceptance criteria:

  • Material counts match known fixtures where available.
  • IFC material associations validate with IfcOpenShell.
  • Viewer applies material names/colors.

Definition of done

  • The TODO acceptance criteria for this section are implemented or explicitly superseded by a linked decision.
  • Tests, fixtures, or documentation are added at the level appropriate to the change risk.
  • User-facing behavior and limitations remain honest in README/docs/viewer messaging.
  • Relevant CI checks pass before the issue is closed.

Activity

  1. added
    area:elements
    area:ifc
    priority:P1
    type:feature
    on Apr 25, 2026
  2. DrunkOnJava commented on Aug 28, 2026

    @DrunkOnJava
    OwnerAuthor

    Triage / v0.2.0+ progress (2026-08-28) — keep open

    Audit against main @ 21aa0e0 (OPS-03 / #99).

    Shipped

    • Material decoder + IFC material / layer-set writer machinery exist (src/elements/styling.rs, IfcMaterialLayer* emission in src/ifc/step_writer.rs)
    • Count fixtures track materials as known_gap on 2024 Core Interior

    Remaining vs AC

    Keep open. Next: #86 (names) + #88 (layer thicknesses/usage).

  3. DrunkOnJava commented on Aug 29, 2026

    @DrunkOnJava
    OwnerAuthor

    Progress (PR #143) — partial #34

    Shipped

    • File Status Materials row: capped display-name sample + honest “(names only; no compound layers)”.
    • Diagnostics: material_names_sample; Einhoven fixture materials → decoder_baseline expected 41±5.
    • rvt-inspect prints material samples.

    Still open vs AC

    Keeping open.

  4. DrunkOnJava commented on Aug 29, 2026

    @DrunkOnJava
    OwnerAuthor

    No new corpus evidence this pass for compound material layers/colors. Skipped in PR #144 (priority was Level ElementId bind + AProperty surfaces). Still blocked on layer/color decode evidence.

  5. DrunkOnJava commented on Sep 27, 2026

    @DrunkOnJava
    OwnerAuthor

    Closing against the acceptance criteria above, rechecked on main (ebba730), 2026-09-27:

    • Material counts match known fixtures: material names by ElementId on Snowdon 219 of 220, Core Interior 78 of 86, and all of RE1, Projeto1, teste_export_2025 and the MIT tutorial house (RE-58).
    • IFC material associations validate with IfcOpenShell: layer sets and usages measured against Revit's own exports with IfcOpenShell 0.8.5 (RE-58), and the committed fixtures pass tools/ci/ifc_schema_arity.py.
    • The viewer applies material names and colours: walls, floors, roofs and ceilings are drawn as their layers in each material's shading colour, all 1,368 Snowdon layer colours Revit's (RE-53, RE-57), with layer highlighting from the element panel.

    What remains is linking family instances (doors, furniture, fixtures) to their materials; that is #355.

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:elementsarea:ifcpriority:P1type:feature

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions